board.h 837 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2020, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-04-16 bigmagic first version
  9. */
  10. #ifndef BOARD_H__
  11. #define BOARD_H__
  12. #include <stdint.h>
  13. #include "raspi4.h"
  14. #include "mmu.h"
  15. #include "ioremap.h"
  16. extern int __bss_end;
  17. #define HEAP_BEGIN ((void*)&__bss_end)
  18. #ifdef RT_USING_SMART
  19. #define HEAP_END ((size_t)KERNEL_VADDR_START + 32 * 1024 * 1024)
  20. #define PAGE_START HEAP_END
  21. #define PAGE_END ((size_t)KERNEL_VADDR_START + 128 * 1024 * 1024)
  22. #else
  23. #define KERNEL_VADDR_START 0x0
  24. #define HEAP_END (KERNEL_VADDR_START + 64 * 1024 * 1024)
  25. #define PAGE_START HEAP_END
  26. #define PAGE_END ((size_t)PAGE_START + 64 * 1024 * 1024)
  27. #endif
  28. void rt_hw_board_init(void);
  29. #endif