locking/refcounts: Include fewer headers in <linux/refcount.h>
[linux/fpc-iii.git] / arch / x86 / include / asm / vsyscall.h
blobb986b2ca688a0e4fa24ace613c7e465e909723fe
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_VSYSCALL_H
3 #define _ASM_X86_VSYSCALL_H
5 #include <linux/seqlock.h>
6 #include <uapi/asm/vsyscall.h>
8 #ifdef CONFIG_X86_VSYSCALL_EMULATION
9 extern void map_vsyscall(void);
10 extern void set_vsyscall_pgtable_user_bits(pgd_t *root);
13 * Called on instruction fetch fault in vsyscall page.
14 * Returns true if handled.
16 extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
17 #else
18 static inline void map_vsyscall(void) {}
19 static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
21 return false;
23 #endif
25 #endif /* _ASM_X86_VSYSCALL_H */