blob: 9b9b30b1944187c8c3de3ed5c4ef1d82ea7c422d [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_PROTO_H
2#define _ASM_X86_PROTO_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
4#include <asm/ldt.h>
5
6/* misc architecture specific prototypes */
7
H. Peter Anvin5bd085b2009-11-16 13:55:31 -08008void syscall_init(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Andy Lutomirskif2b37572016-03-09 19:00:30 -080010#ifdef CONFIG_X86_64
Ingo Molnarb2502b42015-06-08 08:42:03 +020011void entry_SYSCALL_64(void);
Andy Lutomirskif2b37572016-03-09 19:00:30 -080012#endif
13
14#ifdef CONFIG_X86_32
Ingo Molnarb2502b42015-06-08 08:42:03 +020015void entry_INT80_32(void);
Ingo Molnar4c8cd0c2015-06-08 08:33:56 +020016void entry_SYSENTER_32(void);
Andy Lutomirskif2b37572016-03-09 19:00:30 -080017void __begin_SYSENTER_singlestep_region(void);
18void __end_SYSENTER_singlestep_region(void);
19#endif
20
21#ifdef CONFIG_IA32_EMULATION
Ingo Molnar4c8cd0c2015-06-08 08:33:56 +020022void entry_SYSENTER_compat(void);
Andy Lutomirskif2b37572016-03-09 19:00:30 -080023void __end_entry_SYSENTER_compat(void);
24void entry_SYSCALL_compat(void);
25void entry_INT80_compat(void);
26#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
H. Peter Anvin5bd085b2009-11-16 13:55:31 -080028void x86_configure_nx(void);
29void x86_report_nx(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
Linus Torvalds1da177e2005-04-16 15:20:36 -070031extern int reboot_force;
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
Linus Torvalds1da177e2005-04-16 15:20:36 -070033long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
34
H. Peter Anvin1965aae2008-10-22 22:26:29 -070035#endif /* _ASM_X86_PROTO_H */