1 #ifndef _ASM_X86_VSYSCALL_H 2 #define _ASM_X86_VSYSCALL_H 3 4 #include <linux/seqlock.h> 5 #include <uapi/asm/vsyscall.h> 6 7 #ifdef CONFIG_X86_VSYSCALL_EMULATION 8 extern void map_vsyscall(void); 9 10 /* 11 * Called on instruction fetch fault in vsyscall page. 12 * Returns true if handled. 13 */ 14 extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address); 15 extern bool vsyscall_enabled(void); 16 #else map_vsyscall(void)17static inline void map_vsyscall(void) {} emulate_vsyscall(struct pt_regs * regs,unsigned long address)18static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address) 19 { 20 return false; 21 } vsyscall_enabled(void)22static inline bool vsyscall_enabled(void) { return false; } 23 #endif 24 extern unsigned long vsyscall_pgprot; 25 26 #endif /* _ASM_X86_VSYSCALL_H */ 27