| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _ASM_X86_PROTO_H |
| 3 | #define _ASM_X86_PROTO_H |
| 4 | |
| 5 | #include <asm/ldt.h> |
| 6 | |
| 7 | struct task_struct; |
| 8 | |
| 9 | /* misc architecture specific prototypes */ |
| 10 | |
| 11 | void syscall_init(void); |
| 12 | |
| 13 | #ifdef CONFIG_X86_64 |
| 14 | void entry_SYSCALL_64(void); |
| 15 | void entry_SYSCALL_64_safe_stack(void); |
| 16 | void entry_SYSRETQ_unsafe_stack(void); |
| 17 | void entry_SYSRETQ_end(void); |
| 18 | #endif |
| 19 | |
| 20 | #ifdef CONFIG_X86_32 |
| 21 | void entry_INT80_32(void); |
| 22 | void entry_SYSENTER_32(void); |
| 23 | void __begin_SYSENTER_singlestep_region(void); |
| 24 | void __end_SYSENTER_singlestep_region(void); |
| 25 | #endif |
| 26 | |
| 27 | #ifdef CONFIG_IA32_EMULATION |
| 28 | void entry_SYSENTER_compat(void); |
| 29 | void __end_entry_SYSENTER_compat(void); |
| 30 | void entry_SYSCALL_compat(void); |
| 31 | void entry_SYSCALL_compat_safe_stack(void); |
| 32 | void entry_SYSRETL_compat_unsafe_stack(void); |
| 33 | void entry_SYSRETL_compat_end(void); |
| 34 | #else /* !CONFIG_IA32_EMULATION */ |
| 35 | #define entry_SYSCALL_compat NULL |
| 36 | #define entry_SYSENTER_compat NULL |
| 37 | #endif |
| 38 | |
| 39 | void x86_configure_nx(void); |
| 40 | |
| 41 | extern int reboot_force; |
| 42 | |
| 43 | long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2); |
| 44 | |
| 45 | #endif /* _ASM_X86_PROTO_H */ |