blob: deabaf9759b640d5cd93f50f9db67ef2dc60a807 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_VDSO_H
2#define _ASM_X86_VDSO_H
Roland McGrath7f3646a2008-01-30 13:30:41 +01003
Andy Lutomirski9e6f4502014-03-20 18:57:18 -07004#include <asm/page_types.h>
5#include <linux/linkage.h>
Andy Lutomirski6f121e52014-05-05 12:19:34 -07006#include <linux/init.h>
Andy Lutomirski9e6f4502014-03-20 18:57:18 -07007
Andy Lutomirski6f121e52014-05-05 12:19:34 -07008#ifndef __ASSEMBLER__
Andy Lutomirski9e6f4502014-03-20 18:57:18 -07009
Andy Lutomirskia62c34b2014-05-19 15:58:33 -070010#include <linux/mm_types.h>
11
Andy Lutomirski6f121e52014-05-05 12:19:34 -070012struct vdso_image {
13 void *data;
14 unsigned long size; /* Always a multiple of PAGE_SIZE */
Andy Lutomirskia62c34b2014-05-19 15:58:33 -070015
16 /* text_mapping.pages is big enough for data/size page pointers */
17 struct vm_special_mapping text_mapping;
Andy Lutomirski9e6f4502014-03-20 18:57:18 -070018
Andy Lutomirski6f121e52014-05-05 12:19:34 -070019 unsigned long alt, alt_len;
Andy Lutomirski9e6f4502014-03-20 18:57:18 -070020
Andy Lutomirskie6577a72014-07-10 18:13:15 -070021 long sym_vvar_start; /* Negative offset to the vvar area */
Andy Lutomirski18d0a6f2014-05-05 12:19:35 -070022
Andy Lutomirskie6577a72014-07-10 18:13:15 -070023 long sym_vvar_page;
24 long sym_hpet_page;
Andy Lutomirskidac16fb2015-12-10 19:20:20 -080025 long sym_pvclock_page;
Andy Lutomirskie6577a72014-07-10 18:13:15 -070026 long sym_VDSO32_NOTE_MASK;
27 long sym___kernel_sigreturn;
28 long sym___kernel_rt_sigreturn;
29 long sym___kernel_vsyscall;
Andy Lutomirski8242c6c2015-10-05 17:48:01 -070030 long sym_int80_landing_pad;
Andy Lutomirski6f121e52014-05-05 12:19:34 -070031};
32
33#ifdef CONFIG_X86_64
34extern const struct vdso_image vdso_image_64;
35#endif
36
37#ifdef CONFIG_X86_X32
38extern const struct vdso_image vdso_image_x32;
39#endif
Andy Lutomirski9e6f4502014-03-20 18:57:18 -070040
Roland McGrath6c3652e2008-01-30 13:30:42 +010041#if defined CONFIG_X86_32 || defined CONFIG_COMPAT
Andy Lutomirski0a6d1fa2015-10-05 17:47:56 -070042extern const struct vdso_image vdso_image_32;
Roland McGrath6c3652e2008-01-30 13:30:42 +010043#endif
Roland McGrath7f3646a2008-01-30 13:30:41 +010044
Andy Lutomirski6f121e52014-05-05 12:19:34 -070045extern void __init init_vdso_image(const struct vdso_image *image);
Andy Lutomirskib4b541a2014-03-17 23:22:08 +010046
Andy Lutomirski9e6f4502014-03-20 18:57:18 -070047#endif /* __ASSEMBLER__ */
48
H. Peter Anvin1965aae2008-10-22 22:26:29 -070049#endif /* _ASM_X86_VDSO_H */