vsyscall.h 539 字节
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_VSYSCALL_H
#define _ASM_X86_VSYSCALL_H
L
Linus Torvalds 已提交
3

4
#include <linux/seqlock.h>
5
#include <uapi/asm/vsyscall.h>
L
Linus Torvalds 已提交
6

7
#ifdef CONFIG_X86_VSYSCALL_EMULATION
I
Ingo Molnar 已提交
8 9
extern void map_vsyscall(void);

10 11 12 13 14
/*
 * Called on instruction fetch fault in vsyscall page.
 * Returns true if handled.
 */
extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
15 16 17 18 19 20 21
#else
static inline void map_vsyscall(void) {}
static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
{
	return false;
}
#endif
22

H
H. Peter Anvin 已提交
23
#endif /* _ASM_X86_VSYSCALL_H */