]> Git Repo - linux.git/blob - arch/s390/include/asm/vdso/vsyscall.h
Linux 6.14-rc3
[linux.git] / arch / s390 / include / asm / vdso / vsyscall.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_VDSO_VSYSCALL_H
3 #define __ASM_VDSO_VSYSCALL_H
4
5 #define __VDSO_RND_DATA_OFFSET  768
6
7 #ifndef __ASSEMBLY__
8
9 #include <linux/hrtimer.h>
10 #include <vdso/datapage.h>
11 #include <asm/vdso.h>
12
13 enum vvar_pages {
14         VVAR_DATA_PAGE_OFFSET,
15         VVAR_TIMENS_PAGE_OFFSET,
16         VVAR_NR_PAGES
17 };
18
19 static __always_inline struct vdso_data *__s390_get_k_vdso_data(void)
20 {
21         return vdso_data;
22 }
23 #define __arch_get_k_vdso_data __s390_get_k_vdso_data
24
25 static __always_inline struct vdso_rng_data *__s390_get_k_vdso_rnd_data(void)
26 {
27         return (void *)vdso_data + __VDSO_RND_DATA_OFFSET;
28 }
29 #define __arch_get_k_vdso_rng_data __s390_get_k_vdso_rnd_data
30
31 /* The asm-generic header needs to be included after the definitions above */
32 #include <asm-generic/vdso/vsyscall.h>
33
34 #endif /* !__ASSEMBLY__ */
35
36 #endif /* __ASM_VDSO_VSYSCALL_H */
This page took 0.031626 seconds and 4 git commands to generate.