vdso.h 760 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2006-2024 RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2024-07-04 rcitach init ver.
  9. */
  10. #ifndef _VDSO_H
  11. #define _VDSO_H
  12. #include <lwp.h>
  13. #include <mmu.h>
  14. #include <vdso_config.h>
  15. #include <vdso_datapage.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. extern char __vdso_text_start[];
  20. extern char __vdso_text_end[];
  21. #define ELF_HEAD "\177ELF"
  22. #define ELF_HEAD_LEN 4
  23. #define MAX_PAGES 5
  24. #define __page_aligned_data __attribute__((section(".data.vdso.datapage"))) __attribute__((aligned(VDSO_PAGE_SIZE)))
  25. int arch_setup_additional_pages(struct rt_lwp *lwp);
  26. void rt_vdso_update_glob_time(void);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* _VDSO_H */