Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1965aae3 PA |
2 | #ifndef _ASM_X86_PROTO_H |
3 | #define _ASM_X86_PROTO_H | |
1da177e4 LT |
4 | |
5 | #include <asm/ldt.h> | |
6 | ||
f7b21a0e JK |
7 | struct task_struct; |
8 | ||
1da177e4 LT |
9 | /* misc architecture specific prototypes */ |
10 | ||
5bd085b5 | 11 | void syscall_init(void); |
1da177e4 | 12 | |
f2b37575 | 13 | #ifdef CONFIG_X86_64 |
b2502b41 | 14 | void entry_SYSCALL_64(void); |
a13644f3 | 15 | void entry_SYSCALL_64_safe_stack(void); |
47f33de4 LJ |
16 | void entry_SYSRETQ_unsafe_stack(void); |
17 | void entry_SYSRETQ_end(void); | |
17a6e1b8 | 18 | long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2); |
f2b37575 AL |
19 | #endif |
20 | ||
21 | #ifdef CONFIG_X86_32 | |
b2502b41 | 22 | void entry_INT80_32(void); |
4c8cd0c5 | 23 | void entry_SYSENTER_32(void); |
f2b37575 AL |
24 | void __begin_SYSENTER_singlestep_region(void); |
25 | void __end_SYSENTER_singlestep_region(void); | |
26 | #endif | |
27 | ||
28 | #ifdef CONFIG_IA32_EMULATION | |
4c8cd0c5 | 29 | void entry_SYSENTER_compat(void); |
f2b37575 AL |
30 | void __end_entry_SYSENTER_compat(void); |
31 | void entry_SYSCALL_compat(void); | |
78a81d88 | 32 | void entry_SYSCALL_compat_safe_stack(void); |
47f33de4 LJ |
33 | void entry_SYSRETL_compat_unsafe_stack(void); |
34 | void entry_SYSRETL_compat_end(void); | |
61382281 NB |
35 | #else /* !CONFIG_IA32_EMULATION */ |
36 | #define entry_SYSCALL_compat NULL | |
37 | #define entry_SYSENTER_compat NULL | |
f2b37575 | 38 | #endif |
1da177e4 | 39 | |
5bd085b5 | 40 | void x86_configure_nx(void); |
1da177e4 | 41 | |
1da177e4 LT |
42 | extern int reboot_force; |
43 | ||
f5c0b4f3 | 44 | long do_arch_prctl_common(int option, unsigned long arg2); |
b0b9b014 | 45 | |
1965aae3 | 46 | #endif /* _ASM_X86_PROTO_H */ |