proto.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_PROTO_H
  3. #define _ASM_X86_PROTO_H
  4. #include <asm/ldt.h>
  5. struct task_struct;
  6. /* misc architecture specific prototypes */
  7. void syscall_init(void);
  8. #ifdef CONFIG_X86_64
  9. void entry_SYSCALL_64(void);
  10. void entry_SYSCALL_64_safe_stack(void);
  11. void entry_SYSRETQ_unsafe_stack(void);
  12. void entry_SYSRETQ_end(void);
  13. long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2);
  14. #endif
  15. #ifdef CONFIG_X86_32
  16. void entry_INT80_32(void);
  17. void entry_SYSENTER_32(void);
  18. void __begin_SYSENTER_singlestep_region(void);
  19. void __end_SYSENTER_singlestep_region(void);
  20. #endif
  21. #ifdef CONFIG_IA32_EMULATION
  22. void entry_SYSENTER_compat(void);
  23. void __end_entry_SYSENTER_compat(void);
  24. void entry_SYSCALL_compat(void);
  25. void entry_SYSCALL_compat_safe_stack(void);
  26. void entry_SYSRETL_compat_unsafe_stack(void);
  27. void entry_SYSRETL_compat_end(void);
  28. #endif
  29. void x86_configure_nx(void);
  30. extern int reboot_force;
  31. long do_arch_prctl_common(int option, unsigned long arg2);
  32. #endif /* _ASM_X86_PROTO_H */