H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_PROTO_H |
| 2 | #define _ASM_X86_PROTO_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
| 4 | #include <asm/ldt.h> |
| 5 | |
| 6 | /* misc architecture specific prototypes */ |
| 7 | |
H. Peter Anvin | 5bd085b | 2009-11-16 13:55:31 -0800 | [diff] [blame] | 8 | void syscall_init(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Andy Lutomirski | f2b3757 | 2016-03-09 19:00:30 -0800 | [diff] [blame] | 10 | #ifdef CONFIG_X86_64 |
Ingo Molnar | b2502b4 | 2015-06-08 08:42:03 +0200 | [diff] [blame] | 11 | void entry_SYSCALL_64(void); |
Kyle Huey | 17a6e1b | 2017-03-20 01:16:22 -0700 | [diff] [blame] | 12 | long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2); |
Andy Lutomirski | f2b3757 | 2016-03-09 19:00:30 -0800 | [diff] [blame] | 13 | #endif |
| 14 | |
| 15 | #ifdef CONFIG_X86_32 |
Ingo Molnar | b2502b4 | 2015-06-08 08:42:03 +0200 | [diff] [blame] | 16 | void entry_INT80_32(void); |
Ingo Molnar | 4c8cd0c | 2015-06-08 08:33:56 +0200 | [diff] [blame] | 17 | void entry_SYSENTER_32(void); |
Andy Lutomirski | f2b3757 | 2016-03-09 19:00:30 -0800 | [diff] [blame] | 18 | void __begin_SYSENTER_singlestep_region(void); |
| 19 | void __end_SYSENTER_singlestep_region(void); |
| 20 | #endif |
| 21 | |
| 22 | #ifdef CONFIG_IA32_EMULATION |
Ingo Molnar | 4c8cd0c | 2015-06-08 08:33:56 +0200 | [diff] [blame] | 23 | void entry_SYSENTER_compat(void); |
Andy Lutomirski | f2b3757 | 2016-03-09 19:00:30 -0800 | [diff] [blame] | 24 | void __end_entry_SYSENTER_compat(void); |
| 25 | void entry_SYSCALL_compat(void); |
| 26 | void entry_INT80_compat(void); |
| 27 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
H. Peter Anvin | 5bd085b | 2009-11-16 13:55:31 -0800 | [diff] [blame] | 29 | void x86_configure_nx(void); |
| 30 | void x86_report_nx(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | extern int reboot_force; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
Kyle Huey | b0b9b01 | 2017-03-20 01:16:23 -0700 | [diff] [blame^] | 34 | long do_arch_prctl_common(struct task_struct *task, int option, |
| 35 | unsigned long cpuid_enabled); |
| 36 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 37 | #endif /* _ASM_X86_PROTO_H */ |