xref: /openbmc/linux/arch/x86/include/asm/proto.h (revision 31e67366)
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 /* misc architecture specific prototypes */
8 
9 void syscall_init(void);
10 
11 #ifdef CONFIG_X86_64
12 void entry_SYSCALL_64(void);
13 void entry_SYSCALL_64_safe_stack(void);
14 long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2);
15 #endif
16 
17 #ifdef CONFIG_X86_32
18 void entry_INT80_32(void);
19 void entry_SYSENTER_32(void);
20 void __begin_SYSENTER_singlestep_region(void);
21 void __end_SYSENTER_singlestep_region(void);
22 #endif
23 
24 #ifdef CONFIG_IA32_EMULATION
25 void entry_SYSENTER_compat(void);
26 void __end_entry_SYSENTER_compat(void);
27 void entry_SYSCALL_compat(void);
28 void entry_INT80_compat(void);
29 #ifdef CONFIG_XEN_PV
30 void xen_entry_INT80_compat(void);
31 #endif
32 #endif
33 
34 void x86_configure_nx(void);
35 void x86_report_nx(void);
36 
37 extern int reboot_force;
38 
39 long do_arch_prctl_common(struct task_struct *task, int option,
40 			  unsigned long cpuid_enabled);
41 
42 #endif /* _ASM_X86_PROTO_H */
43