]>
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 | 8 | extern void map_vsyscall(void); |
7a2ba0ea | 9 | extern void set_vsyscall_pgtable_user_bits(pgd_t *root); |
e4026440 | 10 | |
3ae36655 AL |
11 | /* |
12 | * Called on instruction fetch fault in vsyscall page. | |
13 | * Returns true if handled. | |
14 | */ | |
15 | extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address); | |
1ad83c85 AL |
16 | #else |
17 | static inline void map_vsyscall(void) {} | |
18 | static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address) | |
19 | { | |
20 | return false; | |
21 | } | |
22 | #endif | |
3ae36655 | 23 | |
1965aae3 | 24 | #endif /* _ASM_X86_VSYSCALL_H */ |