xref: /linux/arch/parisc/include/asm/vdso.h (revision 5862221fddede6bb15566ab3c1f23a3c353da5e1)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PARISC_VDSO_H__
3 #define __PARISC_VDSO_H__
4 
5 #ifndef __ASSEMBLER__
6 
7 #ifdef CONFIG_64BIT
8 #include <generated/vdso64-offsets.h>
9 #define VDSO64_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso64_offset_##name))
10 #endif
11 #if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT)
12 #include <generated/vdso32-offsets.h>
13 #define VDSO32_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso32_offset_##name))
14 #else
15 #define VDSO32_SYMBOL(tsk, name) 0UL
16 #endif
17 
18 #endif /* __ASSEMBLER__ */
19 
20 /* Default link addresses for the vDSOs */
21 #define VDSO_LBASE	0
22 
23 #define VDSO_VERSION_STRING	LINUX_6.11
24 
25 #endif /* __PARISC_VDSO_H__ */
26