x86, vdso: Reimplement vdso.so preparation in build-time C
[firefly-linux-kernel-4.4.55.git] / arch / x86 / include / asm / vdso.h
1 #ifndef _ASM_X86_VDSO_H
2 #define _ASM_X86_VDSO_H
3
4 #include <asm/page_types.h>
5 #include <linux/linkage.h>
6 #include <linux/init.h>
7
8 #ifndef __ASSEMBLER__
9
10 struct vdso_image {
11         void *data;
12         unsigned long size;   /* Always a multiple of PAGE_SIZE */
13         struct page **pages;  /* Big enough for data/size page pointers */
14
15         unsigned long alt, alt_len;
16
17         unsigned long sym_VDSO32_NOTE_MASK;
18         unsigned long sym___kernel_sigreturn;
19         unsigned long sym___kernel_rt_sigreturn;
20         unsigned long sym___kernel_vsyscall;
21         unsigned long sym_VDSO32_SYSENTER_RETURN;
22 };
23
24 #ifdef CONFIG_X86_64
25 extern const struct vdso_image vdso_image_64;
26 #endif
27
28 #ifdef CONFIG_X86_X32
29 extern const struct vdso_image vdso_image_x32;
30 #endif
31
32 #if defined CONFIG_X86_32 || defined CONFIG_COMPAT
33 extern const struct vdso_image vdso_image_32_int80;
34 #ifdef CONFIG_COMPAT
35 extern const struct vdso_image vdso_image_32_syscall;
36 #endif
37 extern const struct vdso_image vdso_image_32_sysenter;
38
39 extern const struct vdso_image *selected_vdso32;
40 #endif
41
42 extern void __init init_vdso_image(const struct vdso_image *image);
43
44 #endif /* __ASSEMBLER__ */
45
46 #endif /* _ASM_X86_VDSO_H */