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
7struct task_struct;
8
9/* misc architecture specific prototypes */
10
11void syscall_init(void);
12
13#ifdef CONFIG_X86_64
14void entry_SYSCALL_64(void);
15void entry_SYSCALL_64_safe_stack(void);
16void entry_SYSRETQ_unsafe_stack(void);
17void entry_SYSRETQ_end(void);
18long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2);
19#endif
20
21#ifdef CONFIG_X86_32
22void entry_INT80_32(void);
23void entry_SYSENTER_32(void);
24void __begin_SYSENTER_singlestep_region(void);
25void __end_SYSENTER_singlestep_region(void);
26#endif
27
28#ifdef CONFIG_IA32_EMULATION
29void entry_SYSENTER_compat(void);
30void __end_entry_SYSENTER_compat(void);
31void entry_SYSCALL_compat(void);
32void entry_SYSCALL_compat_safe_stack(void);
33void entry_SYSRETL_compat_unsafe_stack(void);
34void entry_SYSRETL_compat_end(void);
35void entry_INT80_compat(void);
36#ifdef CONFIG_XEN_PV
37void xen_entry_INT80_compat(void);
38#endif
39#else /* !CONFIG_IA32_EMULATION */
40#define entry_SYSCALL_compat NULL
41#define entry_SYSENTER_compat NULL
42#endif
43
44void x86_configure_nx(void);
45
46extern int reboot_force;
47
48long do_arch_prctl_common(int option, unsigned long arg2);
49
50#endif /* _ASM_X86_PROTO_H */
51

source code of linux/arch/x86/include/asm/proto.h