]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/x86/include/asm/vsyscall.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / x86 / include / asm / vsyscall.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1965aae3
PA
2#ifndef _ASM_X86_VSYSCALL_H
3#define _ASM_X86_VSYSCALL_H
1da177e4 4
75da736f 5#include <linux/seqlock.h>
af170c50 6#include <uapi/asm/vsyscall.h>
1da177e4 7
1ad83c85 8#ifdef CONFIG_X86_VSYSCALL_EMULATION
e4026440
IM
9extern void map_vsyscall(void);
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 */