1 #ifndef __PPC64_VDSO_H__
2 #define __PPC64_VDSO_H__
6 /* Default link addresses for the vDSOs */
7 #define VDSO32_LBASE 0x100000
8 #define VDSO64_LBASE 0x100000
10 /* Default map addresses */
11 #define VDSO32_MBASE VDSO32_LBASE
12 #define VDSO64_MBASE VDSO64_LBASE
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 #else /* __ASSEMBLY__ */
29 #ifdef VDS64_HAS_DESCRIPTORS
30 #define V_FUNCTION_BEGIN(name) \
32 .section ".opd","a"; \
35 .quad .name,.TOC.@tocbase,0; \
38 .type .name,@function; \
41 #define V_FUNCTION_END(name) \
44 #define V_LOCAL_FUNC(name) (.name)
46 #else /* VDS64_HAS_DESCRIPTORS */
48 #define V_FUNCTION_BEGIN(name) \
52 #define V_FUNCTION_END(name) \
55 #define V_LOCAL_FUNC(name) (name)
57 #endif /* VDS64_HAS_DESCRIPTORS */
58 #endif /* __VDSO64__ */
62 #define V_FUNCTION_BEGIN(name) \
64 .type name,@function; \
67 #define V_FUNCTION_END(name) \
70 #define V_LOCAL_FUNC(name) (name)
72 #endif /* __VDSO32__ */
74 #endif /* __ASSEMBLY__ */
76 #endif /* __KERNEL__ */
78 #endif /* __PPC64_VDSO_H__ */