board.h 785 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2025 RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023/06/25 flyingcys first version
  9. * 2025-05-28 ZhangJing Porting to ultrarisc dp1000
  10. */
  11. #ifndef BOARD_H__
  12. #define BOARD_H__
  13. #include <rtconfig.h>
  14. extern unsigned int __bss_start;
  15. extern unsigned int __bss_end;
  16. #ifndef RT_USING_SMART
  17. #define KERNEL_VADDR_START 0x0
  18. #endif
  19. #define VIRT64_SBI_MEMSZ (0x200000)
  20. #define RT_HW_HEAP_BEGIN ((void *)&__bss_end)
  21. #define RT_HW_HEAP_END ((void *)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024))
  22. #define RT_HW_PAGE_START RT_HW_HEAP_END
  23. #define RT_HW_PAGE_END ((void *)(KERNEL_VADDR_START + (256 * 1024 * 1024 - VIRT64_SBI_MEMSZ)))
  24. void rt_hw_board_init(void);
  25. #endif