]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/x86/include/asm/vsyscall.h
UBUNTU: Ubuntu-4.13.0-45.50
[mirror_ubuntu-artful-kernel.git] / arch / x86 / include / asm / vsyscall.h
CommitLineData
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 8extern void map_vsyscall(void);
7a2ba0ea 9extern 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 */
15extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
1ad83c85
AL
16#else
17static inline void map_vsyscall(void) {}
18static 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 */