x86, mm: Improve _install_special_mapping and fix x86 vdso naming
[linux-2.6-block.git] / arch / x86 / include / asm / vdso.h
CommitLineData
1965aae3
PA
1#ifndef _ASM_X86_VDSO_H
2#define _ASM_X86_VDSO_H
7f3646aa 3
9e6f450f
AL
4#include <asm/page_types.h>
5#include <linux/linkage.h>
6f121e54 6#include <linux/init.h>
9e6f450f 7
6f121e54 8#ifndef __ASSEMBLER__
9e6f450f 9
a62c34bd
AL
10#include <linux/mm_types.h>
11
6f121e54
AL
12struct vdso_image {
13 void *data;
14 unsigned long size; /* Always a multiple of PAGE_SIZE */
a62c34bd
AL
15
16 /* text_mapping.pages is big enough for data/size page pointers */
17 struct vm_special_mapping text_mapping;
9e6f450f 18
6f121e54 19 unsigned long alt, alt_len;
9e6f450f 20
18d0a6fd
AL
21 unsigned long sym_end_mapping; /* Total size of the mapping */
22
23 unsigned long sym_vvar_page;
24 unsigned long sym_hpet_page;
6f121e54
AL
25 unsigned long sym_VDSO32_NOTE_MASK;
26 unsigned long sym___kernel_sigreturn;
27 unsigned long sym___kernel_rt_sigreturn;
28 unsigned long sym___kernel_vsyscall;
29 unsigned long sym_VDSO32_SYSENTER_RETURN;
30};
9e6f450f 31
6f121e54
AL
32#ifdef CONFIG_X86_64
33extern const struct vdso_image vdso_image_64;
34#endif
7a59ed41 35
6f121e54
AL
36#ifdef CONFIG_X86_X32
37extern const struct vdso_image vdso_image_x32;
38#endif
7a59ed41 39
6f121e54
AL
40#if defined CONFIG_X86_32 || defined CONFIG_COMPAT
41extern const struct vdso_image vdso_image_32_int80;
9e6f450f 42#ifdef CONFIG_COMPAT
6f121e54 43extern const struct vdso_image vdso_image_32_syscall;
9e6f450f 44#endif
6f121e54 45extern const struct vdso_image vdso_image_32_sysenter;
9e6f450f 46
6f121e54 47extern const struct vdso_image *selected_vdso32;
6c3652ef 48#endif
7f3646aa 49
6f121e54 50extern void __init init_vdso_image(const struct vdso_image *image);
b4b541a6 51
9e6f450f
AL
52#endif /* __ASSEMBLER__ */
53
1965aae3 54#endif /* _ASM_X86_VDSO_H */