18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_X86_PROTO_H
38c2ecf20Sopenharmony_ci#define _ASM_X86_PROTO_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm/ldt.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cistruct task_struct;
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/* misc architecture specific prototypes */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_civoid syscall_init(void);
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifdef CONFIG_X86_64
148c2ecf20Sopenharmony_civoid entry_SYSCALL_64(void);
158c2ecf20Sopenharmony_civoid entry_SYSCALL_64_safe_stack(void);
168c2ecf20Sopenharmony_cilong do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2);
178c2ecf20Sopenharmony_ci#endif
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#ifdef CONFIG_X86_32
208c2ecf20Sopenharmony_civoid entry_INT80_32(void);
218c2ecf20Sopenharmony_civoid entry_SYSENTER_32(void);
228c2ecf20Sopenharmony_civoid __begin_SYSENTER_singlestep_region(void);
238c2ecf20Sopenharmony_civoid __end_SYSENTER_singlestep_region(void);
248c2ecf20Sopenharmony_ci#endif
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#ifdef CONFIG_IA32_EMULATION
278c2ecf20Sopenharmony_civoid entry_SYSENTER_compat(void);
288c2ecf20Sopenharmony_civoid __end_entry_SYSENTER_compat(void);
298c2ecf20Sopenharmony_civoid entry_SYSCALL_compat(void);
308c2ecf20Sopenharmony_civoid entry_SYSCALL_compat_safe_stack(void);
318c2ecf20Sopenharmony_civoid entry_INT80_compat(void);
328c2ecf20Sopenharmony_ci#ifdef CONFIG_XEN_PV
338c2ecf20Sopenharmony_civoid xen_entry_INT80_compat(void);
348c2ecf20Sopenharmony_ci#endif
358c2ecf20Sopenharmony_ci#endif
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_civoid x86_configure_nx(void);
388c2ecf20Sopenharmony_civoid x86_report_nx(void);
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ciextern int reboot_force;
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_cilong do_arch_prctl_common(struct task_struct *task, int option,
438c2ecf20Sopenharmony_ci			  unsigned long cpuid_enabled);
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#endif /* _ASM_X86_PROTO_H */
46