Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / powerpc / include / asm / vdso.h
blobc53f5f6d1761f711b280c9e29509da15e6f1f4b8
1 #ifndef __PPC64_VDSO_H__
2 #define __PPC64_VDSO_H__
4 #ifdef __KERNEL__
6 /* Default link addresses for the vDSOs */
7 #define VDSO32_LBASE 0x0
8 #define VDSO64_LBASE 0x0
10 /* Default map addresses for 32bit vDSO */
11 #define VDSO32_MBASE 0x100000
13 #define VDSO_VERSION_STRING LINUX_2.6.15
15 /* Define if 64 bits VDSO has procedure descriptors */
16 #undef VDS64_HAS_DESCRIPTORS
18 #ifndef __ASSEMBLY__
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 int vdso_getcpu_init(void);
27 #else /* __ASSEMBLY__ */
29 #ifdef __VDSO64__
30 #ifdef VDS64_HAS_DESCRIPTORS
31 #define V_FUNCTION_BEGIN(name) \
32 .globl name; \
33 .section ".opd","a"; \
34 .align 3; \
35 name: \
36 .quad .name,.TOC.@tocbase,0; \
37 .previous; \
38 .globl .name; \
39 .type .name,@function; \
40 .name: \
42 #define V_FUNCTION_END(name) \
43 .size .name,.-.name;
45 #define V_LOCAL_FUNC(name) (.name)
47 #else /* VDS64_HAS_DESCRIPTORS */
49 #define V_FUNCTION_BEGIN(name) \
50 .globl name; \
51 name: \
53 #define V_FUNCTION_END(name) \
54 .size name,.-name;
56 #define V_LOCAL_FUNC(name) (name)
58 #endif /* VDS64_HAS_DESCRIPTORS */
59 #endif /* __VDSO64__ */
61 #ifdef __VDSO32__
63 #define V_FUNCTION_BEGIN(name) \
64 .globl name; \
65 .type name,@function; \
66 name: \
68 #define V_FUNCTION_END(name) \
69 .size name,.-name;
71 #define V_LOCAL_FUNC(name) (name)
73 #endif /* __VDSO32__ */
75 #endif /* __ASSEMBLY__ */
77 #endif /* __KERNEL__ */
79 #endif /* __PPC64_VDSO_H__ */