Linux Audio

Check our new training course

Loading...
v4.10.11
 
 1#ifndef _ASM_X86_VSYSCALL_H
 2#define _ASM_X86_VSYSCALL_H
 3
 4#include <linux/seqlock.h>
 5#include <uapi/asm/vsyscall.h>
 6
 7#ifdef CONFIG_X86_VSYSCALL_EMULATION
 8extern void map_vsyscall(void);
 
 9
10/*
11 * Called on instruction fetch fault in vsyscall page.
12 * Returns true if handled.
13 */
14extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
 
15#else
16static inline void map_vsyscall(void) {}
17static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
 
18{
19	return false;
20}
21#endif
22
23#endif /* _ASM_X86_VSYSCALL_H */
v6.2
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _ASM_X86_VSYSCALL_H
 3#define _ASM_X86_VSYSCALL_H
 4
 5#include <linux/seqlock.h>
 6#include <uapi/asm/vsyscall.h>
 7
 8#ifdef CONFIG_X86_VSYSCALL_EMULATION
 9extern void map_vsyscall(void);
10extern void set_vsyscall_pgtable_user_bits(pgd_t *root);
11
12/*
13 * Called on instruction fetch fault in vsyscall page.
14 * Returns true if handled.
15 */
16extern bool emulate_vsyscall(unsigned long error_code,
17			     struct pt_regs *regs, unsigned long address);
18#else
19static inline void map_vsyscall(void) {}
20static inline bool emulate_vsyscall(unsigned long error_code,
21				    struct pt_regs *regs, unsigned long address)
22{
23	return false;
24}
25#endif
26
27#endif /* _ASM_X86_VSYSCALL_H */