Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __S390_VDSO_H__
0003 #define __S390_VDSO_H__
0004 
0005 #include <vdso/datapage.h>
0006 
0007 #ifndef __ASSEMBLY__
0008 
0009 #include <generated/vdso64-offsets.h>
0010 #ifdef CONFIG_COMPAT
0011 #include <generated/vdso32-offsets.h>
0012 #endif
0013 
0014 #define VDSO64_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso64_offset_##name))
0015 #ifdef CONFIG_COMPAT
0016 #define VDSO32_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso32_offset_##name))
0017 #else
0018 #define VDSO32_SYMBOL(tsk, name) (-1UL)
0019 #endif
0020 
0021 extern struct vdso_data *vdso_data;
0022 
0023 int vdso_getcpu_init(void);
0024 
0025 #endif /* __ASSEMBLY__ */
0026 
0027 /* Default link address for the vDSO */
0028 #define VDSO_LBASE  0
0029 
0030 #define __VVAR_PAGES    2
0031 
0032 #define VDSO_VERSION_STRING LINUX_2.6.29
0033 
0034 #endif /* __S390_VDSO_H__ */