vsyscall.h 635 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_VDSO_VSYSCALL_H
  3. #define __ASM_VDSO_VSYSCALL_H
  4. #ifndef __ASSEMBLY__
  5. #include <linux/timekeeper_internal.h>
  6. #include <vdso/datapage.h>
  7. extern struct vdso_data *vdso_data;
  8. /*
  9. * Update the vDSO data page to keep in sync with kernel timekeeping.
  10. */
  11. static __always_inline struct vdso_data *__riscv_get_k_vdso_data(void)
  12. {
  13. return vdso_data;
  14. }
  15. #define __arch_get_k_vdso_data __riscv_get_k_vdso_data
  16. /* The asm-generic header needs to be included after the definitions above */
  17. #include <asm-generic/vdso/vsyscall.h>
  18. #endif /* !__ASSEMBLY__ */
  19. #endif /* __ASM_VDSO_VSYSCALL_H */