vdso.h 641 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 ARM Limited
  4. */
  5. #ifndef __ASM_VDSO_H
  6. #define __ASM_VDSO_H
  7. /*
  8. * Default link address for the vDSO.
  9. * Since we randomise the VDSO mapping, there's little point in trying
  10. * to prelink this.
  11. */
  12. #define VDSO_LBASE 0x0
  13. #define __VVAR_PAGES 2
  14. #ifndef __ASSEMBLY__
  15. #include <generated/vdso-offsets.h>
  16. #define VDSO_SYMBOL(base, name) \
  17. ({ \
  18. (void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
  19. })
  20. extern char vdso_start[], vdso_end[];
  21. extern char vdso32_start[], vdso32_end[];
  22. #endif /* !__ASSEMBLY__ */
  23. #endif /* __ASM_VDSO_H */