mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
bsp: cviteK: update board init for aarch64
When compiling CV18xx_arch64, have a error:
can not find "rt_fdt_commit_memregion_early"
Analysis: b785ef9 ("[libcpu][aarch64]memory setup using memblock ")
no longer support "rt_fdt_commit_memregion_early", become use
"rt_memblock_reserve_memory"
Solution: Refer to the bsp/qemu-virt64-aarch64/drivers/board.c
delete "rt_fdt_commit_memregion_early"
Signed-off-by: Shicheng Chu <1468559561@qq.com>
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
@@ -79,13 +79,6 @@ void rt_hw_board_init(void)
|
||||
#else
|
||||
void rt_hw_board_init(void)
|
||||
{
|
||||
rt_fdt_commit_memregion_early(&(rt_region_t)
|
||||
{
|
||||
.name = "memheap",
|
||||
.start = (rt_size_t)rt_kmem_v2p((void *)HEAP_BEGIN),
|
||||
.end = (rt_size_t)rt_kmem_v2p((void *)HEAP_END),
|
||||
}, RT_TRUE);
|
||||
|
||||
rt_hw_common_setup();
|
||||
}
|
||||
#endif /* RT_USING_OFW */
|
||||
|
||||
Reference in New Issue
Block a user