WIP FPC-III support
[linux/fpc-iii.git] / arch / powerpc / include / asm / vdso.h
blob8542e9bbeead30c388aa318d373d786e1c580b30
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
10 #ifndef __ASSEMBLY__
12 #ifdef CONFIG_PPC64
13 #include <generated/vdso64-offsets.h>
14 #endif
16 #ifdef CONFIG_VDSO32
17 #include <generated/vdso32-offsets.h>
18 #endif
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__ */
28 #ifdef __VDSO64__
29 #define V_FUNCTION_BEGIN(name) \
30 .globl name; \
31 name: \
33 #define V_FUNCTION_END(name) \
34 .size name,.-name;
36 #define V_LOCAL_FUNC(name) (name)
37 #endif /* __VDSO64__ */
39 #ifdef __VDSO32__
41 #define V_FUNCTION_BEGIN(name) \
42 .globl name; \
43 .type name,@function; \
44 name: \
46 #define V_FUNCTION_END(name) \
47 .size name,.-name;
49 #define V_LOCAL_FUNC(name) (name)
51 #endif /* __VDSO32__ */
53 #endif /* __ASSEMBLY__ */
55 #endif /* _ASM_POWERPC_VDSO_H */