1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PPC64_VDSO_H__
3 #define __PPC64_VDSO_H__
7 /* Default link addresses for the vDSOs */
8 #define VDSO32_LBASE 0x0
9 #define VDSO64_LBASE 0x0
11 /* Default map addresses for 32bit vDSO */
12 #define VDSO32_MBASE 0x100000
14 #define VDSO_VERSION_STRING LINUX_2.6.15
16 /* Define if 64 bits VDSO has procedure descriptors */
17 #undef VDS64_HAS_DESCRIPTORS
21 /* Offsets relative to thread->vdso_base */
22 extern unsigned long vdso64_rt_sigtramp
;
23 extern unsigned long vdso32_sigtramp
;
24 extern unsigned long vdso32_rt_sigtramp
;
26 int vdso_getcpu_init(void);
28 #else /* __ASSEMBLY__ */
31 #ifdef VDS64_HAS_DESCRIPTORS
32 #define V_FUNCTION_BEGIN(name) \
34 .section ".opd","a"; \
37 .quad .name,.TOC.@tocbase,0; \
40 .type .name,@function; \
43 #define V_FUNCTION_END(name) \
46 #define V_LOCAL_FUNC(name) (.name)
48 #else /* VDS64_HAS_DESCRIPTORS */
50 #define V_FUNCTION_BEGIN(name) \
54 #define V_FUNCTION_END(name) \
57 #define V_LOCAL_FUNC(name) (name)
59 #endif /* VDS64_HAS_DESCRIPTORS */
60 #endif /* __VDSO64__ */
64 #define V_FUNCTION_BEGIN(name) \
66 .type name,@function; \
69 #define V_FUNCTION_END(name) \
72 #define V_LOCAL_FUNC(name) (name)
74 #endif /* __VDSO32__ */
76 #endif /* __ASSEMBLY__ */
78 #endif /* __KERNEL__ */
80 #endif /* __PPC64_VDSO_H__ */