Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_VSYSCALL_H |
2 | #define _ASM_X86_VSYSCALL_H | |
1da177e4 | 3 | |
75da736f | 4 | #include <linux/seqlock.h> |
af170c50 | 5 | #include <uapi/asm/vsyscall.h> |
1da177e4 | 6 | |
1ad83c85 | 7 | #ifdef CONFIG_X86_VSYSCALL_EMULATION |
e4026440 IM |
8 | extern void map_vsyscall(void); |
9 | ||
3ae36655 AL |
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); | |
1ad83c85 AL |
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 | |
3ae36655 | 22 | |
1965aae3 | 23 | #endif /* _ASM_X86_VSYSCALL_H */ |