Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Copyright (C) 2015 Imagination Technologies
 4 * Author: Alex Smith <alex.smith@imgtec.com>
 
 
 
 5 */
 6
 7#ifndef __ASM_VDSO_H
 8#define __ASM_VDSO_H
 9
10#include <linux/mm_types.h>
11#include <vdso/datapage.h>
12
13#include <asm/barrier.h>
14
15/**
16 * struct mips_vdso_image - Details of a VDSO image.
17 * @data: Pointer to VDSO image data (page-aligned).
18 * @size: Size of the VDSO image data (page-aligned).
19 * @off_sigreturn: Offset of the sigreturn() trampoline.
20 * @off_rt_sigreturn: Offset of the rt_sigreturn() trampoline.
21 * @mapping: Special mapping structure.
22 *
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.
27 */
28struct mips_vdso_image {
29	void *data;
30	unsigned long size;
31
32	unsigned long off_sigreturn;
33	unsigned long off_rt_sigreturn;
34
35	struct vm_special_mapping mapping;
 
 
 
36};
37
38/*
39 * The following structures are auto-generated as part of the build for each
40 * ABI by genvdso, see arch/mips/vdso/Makefile.
41 */
42
43extern struct mips_vdso_image vdso_image;
44
45#ifdef CONFIG_MIPS32_O32
46extern struct mips_vdso_image vdso_image_o32;
47#endif
48
49#ifdef CONFIG_MIPS32_N32
50extern struct mips_vdso_image vdso_image_n32;
51#endif
52
53union mips_vdso_data {
54	struct vdso_data data[CS_BASES];
55	u8 page[PAGE_SIZE];
56};
 
57
58#endif /* __ASM_VDSO_H */
v3.15
 
 1/*
 2 * This file is subject to the terms and conditions of the GNU General Public
 3 * License.  See the file "COPYING" in the main directory of this archive
 4 * for more details.
 5 *
 6 * Copyright (C) 2009 Cavium Networks
 7 */
 8
 9#ifndef __ASM_VDSO_H
10#define __ASM_VDSO_H
11
12#include <linux/types.h>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
 
14
15#ifdef CONFIG_32BIT
16struct mips_vdso {
17	u32 signal_trampoline[2];
18	u32 rt_signal_trampoline[2];
19};
20#else  /* !CONFIG_32BIT */
21struct mips_vdso {
22	u32 o32_signal_trampoline[2];
23	u32 o32_rt_signal_trampoline[2];
24	u32 rt_signal_trampoline[2];
25	u32 n32_rt_signal_trampoline[2];
 
 
 
 
 
 
 
 
 
 
 
 
 
26};
27#endif /* CONFIG_32BIT */
28
29#endif /* __ASM_VDSO_H */