blob: 43dc55be524e7fdc8e5150f87b02a8639b20b3f3 [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
Andy Lutomirski6f121e52014-05-05 12:19:34 -070016 unsigned long alt, alt_len;
Andy Lutomirski9e6f4502014-03-20 18:57:18 -070017
Andy Lutomirskie6577a72014-07-10 18:13:15 -070018 long sym_vvar_start; /* Negative offset to the vvar area */
Andy Lutomirski18d0a6f2014-05-05 12:19:35 -070019
Andy Lutomirskie6577a72014-07-10 18:13:15 -070020 long sym_vvar_page;
21 long sym_hpet_page;
Andy Lutomirskidac16fb2015-12-10 19:20:20 -080022 long sym_pvclock_page;
Andy Lutomirskie6577a72014-07-10 18:13:15 -070023 long sym_VDSO32_NOTE_MASK;
24 long sym___kernel_sigreturn;
25 long sym___kernel_rt_sigreturn;
26 long sym___kernel_vsyscall;
Andy Lutomirski8242c6c2015-10-05 17:48:01 -070027 long sym_int80_landing_pad;
Andy Lutomirski6f121e52014-05-05 12:19:34 -070028};
29
30#ifdef CONFIG_X86_64
31extern const struct vdso_image vdso_image_64;
32#endif
33
34#ifdef CONFIG_X86_X32
35extern const struct vdso_image vdso_image_x32;
36#endif
Andy Lutomirski9e6f4502014-03-20 18:57:18 -070037
Roland McGrath6c3652e2008-01-30 13:30:42 +010038#if defined CONFIG_X86_32 || defined CONFIG_COMPAT
Andy Lutomirski0a6d1fa2015-10-05 17:47:56 -070039extern const struct vdso_image vdso_image_32;
Roland McGrath6c3652e2008-01-30 13:30:42 +010040#endif
Roland McGrath7f3646a2008-01-30 13:30:41 +010041
Andy Lutomirski6f121e52014-05-05 12:19:34 -070042extern void __init init_vdso_image(const struct vdso_image *image);
Andy Lutomirskib4b541a2014-03-17 23:22:08 +010043
Andy Lutomirski9e6f4502014-03-20 18:57:18 -070044#endif /* __ASSEMBLER__ */
45
H. Peter Anvin1965aae2008-10-22 22:26:29 -070046#endif /* _ASM_X86_VDSO_H */