18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2012 ARM Limited 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci#ifndef __ASM_VDSO_H 68c2ecf20Sopenharmony_ci#define __ASM_VDSO_H 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* 98c2ecf20Sopenharmony_ci * Default link address for the vDSO. 108c2ecf20Sopenharmony_ci * Since we randomise the VDSO mapping, there's little point in trying 118c2ecf20Sopenharmony_ci * to prelink this. 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci#define VDSO_LBASE 0x0 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define __VVAR_PAGES 2 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#include <generated/vdso-offsets.h> 208c2ecf20Sopenharmony_ci#ifdef CONFIG_COMPAT_VDSO 218c2ecf20Sopenharmony_ci#include <generated/vdso32-offsets.h> 228c2ecf20Sopenharmony_ci#endif 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#define VDSO_SYMBOL(base, name) \ 258c2ecf20Sopenharmony_ci({ \ 268c2ecf20Sopenharmony_ci (void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \ 278c2ecf20Sopenharmony_ci}) 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY__ */ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif /* __ASM_VDSO_H */ 32