1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_X86_VDSO_H 3 #define _ASM_X86_VDSO_H 4 5 #include <asm/page_types.h> 6 #include <linux/linkage.h> 7 #include <linux/init.h> 8 9 #ifndef __ASSEMBLER__ 10 11 #include <linux/mm_types.h> 12 13 struct vdso_image { 14 void *data; 15 unsigned long size; /* Always a multiple of PAGE_SIZE */ 16 17 unsigned long alt, alt_len; 18 unsigned long extable_base, extable_len; 19 const void *extable; 20 21 long sym___kernel_sigreturn; 22 long sym___kernel_rt_sigreturn; 23 long sym___kernel_vsyscall; 24 long sym_int80_landing_pad; 25 long sym_vdso32_sigreturn_landing_pad; 26 long sym_vdso32_rt_sigreturn_landing_pad; 27 long sym___futex_list64_try_unlock_cs_start; 28 long sym___futex_list64_try_unlock_cs_end; 29 long sym___futex_list32_try_unlock_cs_start; 30 long sym___futex_list32_try_unlock_cs_end; 31 }; 32 33 extern const struct vdso_image vdso64_image; 34 extern const struct vdso_image vdsox32_image; 35 extern const struct vdso_image vdso32_image; 36 37 extern int __init init_vdso_image(const struct vdso_image *image); 38 39 extern int map_vdso_once(const struct vdso_image *image, unsigned long addr); 40 41 extern bool fixup_vdso_exception(struct pt_regs *regs, int trapnr, 42 unsigned long error_code, 43 unsigned long fault_addr); 44 #endif /* __ASSEMBLER__ */ 45 46 #endif /* _ASM_X86_VDSO_H */ 47