Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_VDSO_H
0003 #define _ASM_X86_VDSO_H
0004 
0005 #include <asm/page_types.h>
0006 #include <linux/linkage.h>
0007 #include <linux/init.h>
0008 
0009 #ifndef __ASSEMBLER__
0010 
0011 #include <linux/mm_types.h>
0012 
0013 struct vdso_image {
0014     void *data;
0015     unsigned long size;   /* Always a multiple of PAGE_SIZE */
0016 
0017     unsigned long alt, alt_len;
0018     unsigned long extable_base, extable_len;
0019     const void *extable;
0020 
0021     long sym_vvar_start;  /* Negative offset to the vvar area */
0022 
0023     long sym_vvar_page;
0024     long sym_pvclock_page;
0025     long sym_hvclock_page;
0026     long sym_timens_page;
0027     long sym_VDSO32_NOTE_MASK;
0028     long sym___kernel_sigreturn;
0029     long sym___kernel_rt_sigreturn;
0030     long sym___kernel_vsyscall;
0031     long sym_int80_landing_pad;
0032     long sym_vdso32_sigreturn_landing_pad;
0033     long sym_vdso32_rt_sigreturn_landing_pad;
0034 };
0035 
0036 #ifdef CONFIG_X86_64
0037 extern const struct vdso_image vdso_image_64;
0038 #endif
0039 
0040 #ifdef CONFIG_X86_X32_ABI
0041 extern const struct vdso_image vdso_image_x32;
0042 #endif
0043 
0044 #if defined CONFIG_X86_32 || defined CONFIG_COMPAT
0045 extern const struct vdso_image vdso_image_32;
0046 #endif
0047 
0048 extern void __init init_vdso_image(const struct vdso_image *image);
0049 
0050 extern int map_vdso_once(const struct vdso_image *image, unsigned long addr);
0051 
0052 extern bool fixup_vdso_exception(struct pt_regs *regs, int trapnr,
0053                  unsigned long error_code,
0054                  unsigned long fault_addr);
0055 #endif /* __ASSEMBLER__ */
0056 
0057 #endif /* _ASM_X86_VDSO_H */