/* * 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 #include #include #include #include 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(); }