vsyscall.h 635 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_VSYSCALL_H
  3. #define _ASM_X86_VSYSCALL_H
  4. #include <linux/seqlock.h>
  5. #include <uapi/asm/vsyscall.h>
  6. #ifdef CONFIG_X86_VSYSCALL_EMULATION
  7. extern void map_vsyscall(void);
  8. extern void set_vsyscall_pgtable_user_bits(pgd_t *root);
  9. /*
  10. * Called on instruction fetch fault in vsyscall page.
  11. * Returns true if handled.
  12. */
  13. extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
  14. #else
  15. static inline void map_vsyscall(void) {}
  16. static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
  17. {
  18. return false;
  19. }
  20. #endif
  21. #endif /* _ASM_X86_VSYSCALL_H */