1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_POWERPC_VDSO_VSYSCALL_H 3 #define _ASM_POWERPC_VDSO_VSYSCALL_H 4 5 #ifndef __ASSEMBLY__ 6 7 #include <asm/vdso_datapage.h> 8 9 static __always_inline 10 struct vdso_data *__arch_get_k_vdso_data(void) 11 { 12 return vdso_data->data; 13 } 14 #define __arch_get_k_vdso_data __arch_get_k_vdso_data 15 16 static __always_inline 17 struct vdso_rng_data *__arch_get_k_vdso_rng_data(void) 18 { 19 return &vdso_data->rng_data; 20 } 21 22 /* The asm-generic header needs to be included after the definitions above */ 23 #include <asm-generic/vdso/vsyscall.h> 24 25 #endif /* !__ASSEMBLY__ */ 26 27 #endif /* _ASM_POWERPC_VDSO_VSYSCALL_H */ 28