Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2012 ARM Limited
0004  */
0005 #ifndef __ASM_VDSO_H
0006 #define __ASM_VDSO_H
0007 
0008 /*
0009  * Default link address for the vDSO.
0010  * Since we randomise the VDSO mapping, there's little point in trying
0011  * to prelink this.
0012  */
0013 #define VDSO_LBASE  0x0
0014 
0015 #define __VVAR_PAGES    2
0016 
0017 #ifndef __ASSEMBLY__
0018 
0019 #include <generated/vdso-offsets.h>
0020 #ifdef CONFIG_COMPAT_VDSO
0021 #include <generated/vdso32-offsets.h>
0022 #endif
0023 
0024 #define VDSO_SYMBOL(base, name)                        \
0025 ({                                     \
0026     (void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
0027 })
0028 
0029 #endif /* !__ASSEMBLY__ */
0030 
0031 #endif /* __ASM_VDSO_H */