2 * Copyright (C) 2015 Imagination Technologies
3 * Author: Alex Smith <alex.smith@imgtec.com>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
14 #include <linux/mm_types.h>
17 * struct mips_vdso_image - Details of a VDSO image.
18 * @data: Pointer to VDSO image data (page-aligned).
19 * @size: Size of the VDSO image data (page-aligned).
20 * @off_sigreturn: Offset of the sigreturn() trampoline.
21 * @off_rt_sigreturn: Offset of the rt_sigreturn() trampoline.
22 * @mapping: Special mapping structure.
24 * This structure contains details of a VDSO image, including the image data
25 * and offsets of certain symbols required by the kernel. It is generated as
26 * part of the VDSO build process, aside from the mapping page array, which is
27 * populated at runtime.
29 struct mips_vdso_image {
33 unsigned long off_sigreturn;
34 unsigned long off_rt_sigreturn;
36 struct vm_special_mapping mapping;
40 * The following structures are auto-generated as part of the build for each
41 * ABI by genvdso, see arch/mips/vdso/Makefile.
44 extern struct mips_vdso_image vdso_image;
46 #ifdef CONFIG_MIPS32_O32
47 extern struct mips_vdso_image vdso_image_o32;
50 #ifdef CONFIG_MIPS32_N32
51 extern struct mips_vdso_image vdso_image_n32;
55 * union mips_vdso_data - Data provided by the kernel for the VDSO.
57 * This structure contains data needed by functions within the VDSO. It is
58 * populated by the kernel and mapped read-only into user memory.
60 * Note: Care should be taken when modifying as the layout must remain the same
61 * for both 64- and 32-bit (for 32-bit userland on 64-bit kernel).
63 union mips_vdso_data {
70 #endif /* __ASM_VDSO_H */