vdso.h 1.0 KB
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_VDSO_H
#define _ASM_X86_VDSO_H
R
Roland McGrath 已提交
3

4 5
#include <asm/page_types.h>
#include <linux/linkage.h>
6
#include <linux/init.h>
7

8
#ifndef __ASSEMBLER__
9

10 11
#include <linux/mm_types.h>

12 13 14
struct vdso_image {
	void *data;
	unsigned long size;   /* Always a multiple of PAGE_SIZE */
15 16 17

	/* text_mapping.pages is big enough for data/size page pointers */
	struct vm_special_mapping text_mapping;
18

19
	unsigned long alt, alt_len;
20

21 22 23 24 25 26 27 28
	long sym_vvar_start;  /* Negative offset to the vvar area */

	long sym_vvar_page;
	long sym_hpet_page;
	long sym_VDSO32_NOTE_MASK;
	long sym___kernel_sigreturn;
	long sym___kernel_rt_sigreturn;
	long sym___kernel_vsyscall;
29
};
30

31 32 33
#ifdef CONFIG_X86_64
extern const struct vdso_image vdso_image_64;
#endif
34

35 36 37
#ifdef CONFIG_X86_X32
extern const struct vdso_image vdso_image_x32;
#endif
38

39
#if defined CONFIG_X86_32 || defined CONFIG_COMPAT
40
extern const struct vdso_image vdso_image_32;
R
Roland McGrath 已提交
41
#endif
R
Roland McGrath 已提交
42

43
extern void __init init_vdso_image(const struct vdso_image *image);
44

45 46
#endif /* __ASSEMBLER__ */

H
H. Peter Anvin 已提交
47
#endif /* _ASM_X86_VDSO_H */