lwp_arch.h 912 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-05-18 Jesven first version
  9. */
  10. #ifndef LWP_ARCH_H__
  11. #define LWP_ARCH_H__
  12. #include <lwp.h>
  13. #include <lwp_arch_comm.h>
  14. #ifdef ARCH_MM_MMU
  15. #define USER_VADDR_TOP 0x0001000000000000UL
  16. #define USER_HEAP_VEND 0x0000ffffB0000000UL
  17. #define USER_HEAP_VADDR 0x0000ffff80000000UL
  18. #define USER_STACK_VSTART 0x0000ffff70000000UL
  19. #define USER_STACK_VEND USER_HEAP_VADDR
  20. #define LDSO_LOAD_VADDR 0x60000000UL
  21. #define USER_VADDR_START 0x00200000UL
  22. #define USER_LOAD_VADDR USER_VADDR_START
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. unsigned long rt_hw_ffz(unsigned long x);
  27. rt_inline void icache_invalid_all(void)
  28. {
  29. asm volatile ("ic ialluis\n\tisb sy":::"memory");
  30. }
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif
  35. #endif /*LWP_ARCH_H__*/