Linux 5.7.6
[linux/fpc-iii.git] / arch / x86 / include / asm / vdso.h
blobbbcdc7b8f963c076186fbc706938b67b4bc61823
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>
9 #ifndef __ASSEMBLER__
11 #include <linux/mm_types.h>
13 struct vdso_image {
14 void *data;
15 unsigned long size; /* Always a multiple of PAGE_SIZE */
17 unsigned long alt, alt_len;
19 long sym_vvar_start; /* Negative offset to the vvar area */
21 long sym_vvar_page;
22 long sym_pvclock_page;
23 long sym_hvclock_page;
24 long sym_timens_page;
25 long sym_VDSO32_NOTE_MASK;
26 long sym___kernel_sigreturn;
27 long sym___kernel_rt_sigreturn;
28 long sym___kernel_vsyscall;
29 long sym_int80_landing_pad;
32 #ifdef CONFIG_X86_64
33 extern const struct vdso_image vdso_image_64;
34 #endif
36 #ifdef CONFIG_X86_X32
37 extern const struct vdso_image vdso_image_x32;
38 #endif
40 #if defined CONFIG_X86_32 || defined CONFIG_COMPAT
41 extern const struct vdso_image vdso_image_32;
42 #endif
44 extern void __init init_vdso_image(const struct vdso_image *image);
46 extern int map_vdso_once(const struct vdso_image *image, unsigned long addr);
48 #endif /* __ASSEMBLER__ */
50 #endif /* _ASM_X86_VDSO_H */