Googler | 9398cc3 | 2022-12-02 17:21:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 2 | #ifndef _ASM_X86_PROTO_H |
| 3 | #define _ASM_X86_PROTO_H |
| 4 | |
| 5 | #include <asm/ldt.h> |
| 6 | |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 7 | /* misc architecture specific prototypes */ |
| 8 | |
| 9 | void syscall_init(void); |
| 10 | |
| 11 | #ifdef CONFIG_X86_64 |
| 12 | void entry_SYSCALL_64(void); |
Googler | 9398cc3 | 2022-12-02 17:21:52 +0800 | [diff] [blame] | 13 | long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2); |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 14 | #endif |
| 15 | |
| 16 | #ifdef CONFIG_X86_32 |
| 17 | void entry_INT80_32(void); |
| 18 | void entry_SYSENTER_32(void); |
| 19 | void __begin_SYSENTER_singlestep_region(void); |
| 20 | void __end_SYSENTER_singlestep_region(void); |
| 21 | #endif |
| 22 | |
| 23 | #ifdef CONFIG_IA32_EMULATION |
| 24 | void entry_SYSENTER_compat(void); |
| 25 | void __end_entry_SYSENTER_compat(void); |
| 26 | void entry_SYSCALL_compat(void); |
| 27 | void entry_INT80_compat(void); |
Googler | 9398cc3 | 2022-12-02 17:21:52 +0800 | [diff] [blame] | 28 | #if defined(CONFIG_X86_64) && defined(CONFIG_XEN_PV) |
| 29 | void xen_entry_INT80_compat(void); |
| 30 | #endif |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 31 | #endif |
| 32 | |
| 33 | void x86_configure_nx(void); |
| 34 | void x86_report_nx(void); |
| 35 | |
| 36 | extern int reboot_force; |
| 37 | |
Googler | 9398cc3 | 2022-12-02 17:21:52 +0800 | [diff] [blame] | 38 | long do_arch_prctl_common(struct task_struct *task, int option, |
| 39 | unsigned long cpuid_enabled); |
Googler | af606d2 | 2022-10-26 21:40:12 -0700 | [diff] [blame] | 40 | |
| 41 | #endif /* _ASM_X86_PROTO_H */ |