1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_VDSO_H
3 #define _ASM_POWERPC_VDSO_H
5 /* Default map addresses for 32bit vDSO */
6 #define VDSO32_MBASE 0x100000
8 #define VDSO_VERSION_STRING LINUX_2.6.15
13 #include <generated/vdso64-offsets.h>
17 #include <generated/vdso32-offsets.h>
20 #define VDSO64_SYMBOL(base, name) ((unsigned long)(base) + (vdso64_offset_##name))
22 #define VDSO32_SYMBOL(base, name) ((unsigned long)(base) + (vdso32_offset_##name))
24 int vdso_getcpu_init(void);
26 #else /* __ASSEMBLY__ */
29 #define V_FUNCTION_BEGIN(name) \
33 #define V_FUNCTION_END(name) \
36 #define V_LOCAL_FUNC(name) (name)
37 #endif /* __VDSO64__ */
41 #define V_FUNCTION_BEGIN(name) \
43 .type name,@function; \
46 #define V_FUNCTION_END(name) \
49 #define V_LOCAL_FUNC(name) (name)
51 #endif /* __VDSO32__ */
53 #endif /* __ASSEMBLY__ */
55 #endif /* _ASM_POWERPC_VDSO_H */