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 for 32bit vDSO */
11 #define VDSO32_MBASE VDSO32_LBASE
13 #define VDSO_VERSION_STRING LINUX_2.6.15
15 /* Define if 64 bits VDSO has procedure descriptors */
16 #undef VDS64_HAS_DESCRIPTORS
20 /* Offsets relative to thread->vdso_base */
21 extern unsigned long vdso64_rt_sigtramp
;
22 extern unsigned long vdso32_sigtramp
;
23 extern unsigned long vdso32_rt_sigtramp
;
25 #else /* __ASSEMBLY__ */
28 #ifdef VDS64_HAS_DESCRIPTORS
29 #define V_FUNCTION_BEGIN(name) \
31 .section ".opd","a"; \
34 .quad .name,.TOC.@tocbase,0; \
37 .type .name,@function; \
40 #define V_FUNCTION_END(name) \
43 #define V_LOCAL_FUNC(name) (.name)
45 #else /* VDS64_HAS_DESCRIPTORS */
47 #define V_FUNCTION_BEGIN(name) \
51 #define V_FUNCTION_END(name) \
54 #define V_LOCAL_FUNC(name) (name)
56 #endif /* VDS64_HAS_DESCRIPTORS */
57 #endif /* __VDSO64__ */
61 #define V_FUNCTION_BEGIN(name) \
63 .type name,@function; \
66 #define V_FUNCTION_END(name) \
69 #define V_LOCAL_FUNC(name) (name)
71 #endif /* __VDSO32__ */
73 #endif /* __ASSEMBLY__ */
75 #endif /* __KERNEL__ */
77 #endif /* __PPC64_VDSO_H__ */