vdso.h 426 B

12345678910111213141516171819202122232425
  1. /*
  2. * SPDX-License-Identifier: GPL-2.0
  3. * Copyright (C) 2005-2017 Andes Technology Corporation
  4. */
  5. #ifndef __ASM_VDSO_H
  6. #define __ASM_VDSO_H
  7. #ifdef __KERNEL__
  8. #ifndef __ASSEMBLY__
  9. #include <generated/vdso-offsets.h>
  10. #define VDSO_SYMBOL(base, name) \
  11. ({ \
  12. (unsigned long)(vdso_offset_##name + (unsigned long)(base)); \
  13. })
  14. #endif /* !__ASSEMBLY__ */
  15. #endif /* __KERNEL__ */
  16. #endif /* __ASM_VDSO_H */