xref: /openbmc/linux/arch/x86/include/asm/vsyscall.h (revision 4c79e98b)
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 #else
16 static inline void map_vsyscall(void) {}
17 static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
18 {
19 	return false;
20 }
21 #endif
22 
23 #endif /* _ASM_X86_VSYSCALL_H */
24