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 11 #ifndef BOARD_H__ 12 #define BOARD_H__ 13 14 #include <stdint.h> 15 #include "raspi4.h" 16 #include "mmu.h" 17 #include "ioremap.h" 18 19 extern int __bss_end; 20 #define HEAP_BEGIN ((void*)&__bss_end) 21 22 #ifdef RT_USING_SMART 23 #define HEAP_END ((size_t)KERNEL_VADDR_START + 32 * 1024 * 1024) 24 #define PAGE_START HEAP_END 25 #define PAGE_END ((size_t)KERNEL_VADDR_START + 128 * 1024 * 1024) 26 #else 27 #define KERNEL_VADDR_START 0x0 28 29 #define HEAP_END (KERNEL_VADDR_START + 32 * 1024 * 1024) 30 #define PAGE_START HEAP_END 31 #define PAGE_END ((size_t)PAGE_START + 128 * 1024 * 1024) 32 #endif 33 34 void rt_hw_board_init(void); 35 36 #endif 37