xref: /linux/arch/x86/include/asm/vdso.h (revision 18d0a6fd227177fd243993179c90e454d0638b06)
11965aae3SH. Peter Anvin #ifndef _ASM_X86_VDSO_H
21965aae3SH. Peter Anvin #define _ASM_X86_VDSO_H
3bb898558SAl Viro 
49e6f450fSAndy Lutomirski #include <asm/page_types.h>
59e6f450fSAndy Lutomirski #include <linux/linkage.h>
66f121e54SAndy Lutomirski #include <linux/init.h>
79e6f450fSAndy Lutomirski 
86f121e54SAndy Lutomirski #ifndef __ASSEMBLER__
99e6f450fSAndy Lutomirski 
106f121e54SAndy Lutomirski struct vdso_image {
116f121e54SAndy Lutomirski 	void *data;
126f121e54SAndy Lutomirski 	unsigned long size;   /* Always a multiple of PAGE_SIZE */
136f121e54SAndy Lutomirski 	struct page **pages;  /* Big enough for data/size page pointers */
149e6f450fSAndy Lutomirski 
156f121e54SAndy Lutomirski 	unsigned long alt, alt_len;
169e6f450fSAndy Lutomirski 
17*18d0a6fdSAndy Lutomirski 	unsigned long sym_end_mapping;  /* Total size of the mapping */
18*18d0a6fdSAndy Lutomirski 
19*18d0a6fdSAndy Lutomirski 	unsigned long sym_vvar_page;
20*18d0a6fdSAndy Lutomirski 	unsigned long sym_hpet_page;
216f121e54SAndy Lutomirski 	unsigned long sym_VDSO32_NOTE_MASK;
226f121e54SAndy Lutomirski 	unsigned long sym___kernel_sigreturn;
236f121e54SAndy Lutomirski 	unsigned long sym___kernel_rt_sigreturn;
246f121e54SAndy Lutomirski 	unsigned long sym___kernel_vsyscall;
256f121e54SAndy Lutomirski 	unsigned long sym_VDSO32_SYSENTER_RETURN;
266f121e54SAndy Lutomirski };
276f121e54SAndy Lutomirski 
286f121e54SAndy Lutomirski #ifdef CONFIG_X86_64
296f121e54SAndy Lutomirski extern const struct vdso_image vdso_image_64;
306f121e54SAndy Lutomirski #endif
316f121e54SAndy Lutomirski 
326f121e54SAndy Lutomirski #ifdef CONFIG_X86_X32
336f121e54SAndy Lutomirski extern const struct vdso_image vdso_image_x32;
346f121e54SAndy Lutomirski #endif
359e6f450fSAndy Lutomirski 
36bb898558SAl Viro #if defined CONFIG_X86_32 || defined CONFIG_COMPAT
376f121e54SAndy Lutomirski extern const struct vdso_image vdso_image_32_int80;
389e6f450fSAndy Lutomirski #ifdef CONFIG_COMPAT
396f121e54SAndy Lutomirski extern const struct vdso_image vdso_image_32_syscall;
409e6f450fSAndy Lutomirski #endif
416f121e54SAndy Lutomirski extern const struct vdso_image vdso_image_32_sysenter;
429e6f450fSAndy Lutomirski 
436f121e54SAndy Lutomirski extern const struct vdso_image *selected_vdso32;
44bb898558SAl Viro #endif
45bb898558SAl Viro 
466f121e54SAndy Lutomirski extern void __init init_vdso_image(const struct vdso_image *image);
47b4b541a6SAndy Lutomirski 
489e6f450fSAndy Lutomirski #endif /* __ASSEMBLER__ */
499e6f450fSAndy Lutomirski 
501965aae3SH. Peter Anvin #endif /* _ASM_X86_VDSO_H */
51