board.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2013, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2013-07-06 Bernard the first version
  13. */
  14. #ifndef __BOARD_H__
  15. #define __BOARD_H__
  16. #include <rtconfig.h>
  17. #include <realview.h>
  18. #include "vexpress_a9.h"
  19. #include "mmu.h"
  20. #include "ioremap.h"
  21. #if defined(__CC_ARM)
  22. extern int Image$$RW_IRAM1$$ZI$$Limit;
  23. #define HEAP_BEGIN ((void*)&Image$$RW_IRAM1$$ZI$$Limit)
  24. #elif defined(__GNUC__)
  25. extern int __bss_end;
  26. #define HEAP_BEGIN ((void*)&__bss_end)
  27. #endif
  28. #ifdef RT_USING_USERSPACE
  29. #define HEAP_END (void*)(KERNEL_VADDR_START + 16 * 1024 * 1024)
  30. #define PAGE_START HEAP_END
  31. #define PAGE_END (void*)(KERNEL_VADDR_START + 128 * 1024 * 1024)
  32. #else
  33. #define HEAP_END (void*)(0x60000000 + 64 * 1024 * 1024)
  34. #endif
  35. void rt_hw_board_init(void);
  36. extern rt_mmu_info mmu_info;
  37. #endif