1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_VDSO_H
3 #define _ASM_X86_VDSO_H
5 #include <asm/page_types.h>
6 #include <linux/linkage.h>
7 #include <linux/init.h>
11 #include <linux/mm_types.h>
15 unsigned long size
; /* Always a multiple of PAGE_SIZE */
17 unsigned long alt
, alt_len
;
18 unsigned long extable_base
, extable_len
;
21 long sym_vvar_start
; /* Negative offset to the vvar area */
24 long sym_pvclock_page
;
25 long sym_hvclock_page
;
27 long sym_VDSO32_NOTE_MASK
;
28 long sym___kernel_sigreturn
;
29 long sym___kernel_rt_sigreturn
;
30 long sym___kernel_vsyscall
;
31 long sym_int80_landing_pad
;
32 long sym_vdso32_sigreturn_landing_pad
;
33 long sym_vdso32_rt_sigreturn_landing_pad
;
37 extern const struct vdso_image vdso_image_64
;
41 extern const struct vdso_image vdso_image_x32
;
44 #if defined CONFIG_X86_32 || defined CONFIG_COMPAT
45 extern const struct vdso_image vdso_image_32
;
48 extern void __init
init_vdso_image(const struct vdso_image
*image
);
50 extern int map_vdso_once(const struct vdso_image
*image
, unsigned long addr
);
52 extern bool fixup_vdso_exception(struct pt_regs
*regs
, int trapnr
,
53 unsigned long error_code
,
54 unsigned long fault_addr
);
55 #endif /* __ASSEMBLER__ */
57 #endif /* _ASM_X86_VDSO_H */