board.c 744 B

1234567891011121314151617181920212223242526272829303132
  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. * 2012-11-20 Bernard the first version
  9. * 2018-11-22 Jesven add rt_hw_spin_lock
  10. * add rt_hw_spin_unlock
  11. * add smp ipi init
  12. */
  13. #include <mmu.h>
  14. #include <board.h>
  15. #include <mm_aspace.h>
  16. #include <mm_page.h>
  17. #include <setup.h>
  18. extern size_t MMUTable[];
  19. void rt_hw_board_init(void)
  20. {
  21. rt_fdt_commit_memregion_early(&(rt_region_t)
  22. {
  23. .name = "memheap",
  24. .start = (rt_size_t)rt_kmem_v2p(HEAP_BEGIN),
  25. .end = (rt_size_t)rt_kmem_v2p(HEAP_END),
  26. }, RT_TRUE);
  27. rt_hw_common_setup();
  28. }