You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
744 B
33 lines
744 B
10 months ago
|
/*
|
||
|
* 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>
|
||
|
#include <board.h>
|
||
|
#include <mm_aspace.h>
|
||
|
#include <mm_page.h>
|
||
|
#include <setup.h>
|
||
|
|
||
|
extern size_t MMUTable[];
|
||
|
|
||
|
void rt_hw_board_init(void)
|
||
|
{
|
||
|
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);
|
||
|
|
||
|
rt_hw_common_setup();
|
||
|
}
|