2022-12-20 17:49:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2012-11-20 Bernard the first version
|
|
|
|
* 2018-11-22 Jesven add rt_hw_spin_lock
|
|
|
|
* add rt_hw_spin_unlock
|
|
|
|
* add smp ipi init
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <mmu.h>
|
2023-12-16 18:08:11 +08:00
|
|
|
#include <board.h>
|
2023-02-14 23:08:32 +08:00
|
|
|
#include <mm_aspace.h>
|
2023-01-09 10:08:55 +08:00
|
|
|
#include <mm_page.h>
|
2023-11-28 14:20:11 +08:00
|
|
|
#include <setup.h>
|
2022-12-20 17:49:37 +08:00
|
|
|
|
|
|
|
extern size_t MMUTable[];
|
|
|
|
|
|
|
|
void rt_hw_board_init(void)
|
|
|
|
{
|
2023-12-16 18:08:11 +08:00
|
|
|
rt_fdt_commit_memregion_early(&(rt_region_t)
|
|
|
|
{
|
|
|
|
.name = "memheap",
|
|
|
|
.start = (rt_size_t)rt_kmem_v2p(HEAP_BEGIN),
|
|
|
|
.end = (rt_size_t)rt_kmem_v2p(HEAP_END),
|
|
|
|
}, RT_TRUE);
|
2023-01-09 10:08:55 +08:00
|
|
|
|
2023-11-28 14:20:11 +08:00
|
|
|
rt_hw_common_setup();
|
2022-12-20 17:49:37 +08:00
|
|
|
}
|