1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_POWERPC_VDSO_H 3 #define _ASM_POWERPC_VDSO_H 4 5 #define VDSO_VERSION_STRING LINUX_2.6.15 6 7 #ifndef __ASSEMBLY__ 8 9 #ifdef CONFIG_PPC64 10 #include <generated/vdso64-offsets.h> 11 #endif 12 13 #ifdef CONFIG_VDSO32 14 #include <generated/vdso32-offsets.h> 15 #endif 16 17 #define VDSO64_SYMBOL(base, name) ((unsigned long)(base) + (vdso64_offset_##name)) 18 19 #define VDSO32_SYMBOL(base, name) ((unsigned long)(base) + (vdso32_offset_##name)) 20 21 int vdso_getcpu_init(void); 22 23 #else /* __ASSEMBLY__ */ 24 25 #ifdef __VDSO64__ 26 #define V_FUNCTION_BEGIN(name) \ 27 .globl name; \ 28 .type name,@function; \ 29 name: \ 30 31 #define V_FUNCTION_END(name) \ 32 .size name,.-name; 33 34 #define V_LOCAL_FUNC(name) (name) 35 #endif /* __VDSO64__ */ 36 37 #ifdef __VDSO32__ 38 39 #define V_FUNCTION_BEGIN(name) \ 40 .globl name; \ 41 .type name,@function; \ 42 name: \ 43 44 #define V_FUNCTION_END(name) \ 45 .size name,.-name; 46 47 #define V_LOCAL_FUNC(name) (name) 48 49 #endif /* __VDSO32__ */ 50 51 #endif /* __ASSEMBLY__ */ 52 53 #endif /* _ASM_POWERPC_VDSO_H */ 54