1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Author: Huacai Chen <chenhuacai@loongson.cn>
4 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
10 #include <linux/mm_types.h>
11 #include <vdso/datapage.h>
13 #include <asm/barrier.h>
16 * struct loongarch_vdso_info - Details of a VDSO image.
17 * @vdso: Pointer to VDSO image (page-aligned).
18 * @size: Size of the VDSO image (page-aligned).
19 * @off_rt_sigreturn: Offset of the rt_sigreturn() trampoline.
20 * @code_mapping: Special mapping structure for vdso code.
21 * @code_mapping: Special mapping structure for vdso data.
23 * This structure contains details of a VDSO image, including the image data
24 * and offsets of certain symbols required by the kernel. It is generated as
25 * part of the VDSO build process, aside from the mapping page array, which is
26 * populated at runtime.
28 struct loongarch_vdso_info {
31 unsigned long offset_sigreturn;
32 struct vm_special_mapping code_mapping;
33 struct vm_special_mapping data_mapping;
36 extern struct loongarch_vdso_info vdso_info;
38 #endif /* __ASM_VDSO_H */