diff options
| author | liYangYang <[email protected]> | 2024-05-08 19:48:17 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-08 19:48:17 +0800 |
| commit | dbf8a26e6c9a8770b2cf708a24e080a81db4f07c (patch) | |
| tree | 890a7a4e95abddfd4bd7625c1ec754e5c6dd1798 /bsp | |
| parent | 73153ac06a07a574627b49c9a86ac2d57c298cd0 (diff) | |
[libcpu][aarch64] Fixed the rt_hw_secondary_cpu_bsp_start() bug (#8898)
* fix rt_hw_secondary_cpu_bsp_start() bug
* timer init
* comment
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/qemu-virt64-aarch64/drivers/secondary_cpu.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/bsp/qemu-virt64-aarch64/drivers/secondary_cpu.c b/bsp/qemu-virt64-aarch64/drivers/secondary_cpu.c deleted file mode 100644 index ee8afbd23c..0000000000 --- a/bsp/qemu-virt64-aarch64/drivers/secondary_cpu.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2006-2022, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ -#include <rthw.h> -#include <rtthread.h> -#include <cpu.h> -#include "gic.h" -#include "interrupt.h" -#include "mmu.h" -#include "gtimer.h" - -#ifdef BSP_USING_GICV3 -#include <gicv3.h> -#endif - -#ifdef RT_USING_SMP - -extern unsigned long MMUTable[]; - -void rt_hw_secondary_cpu_bsp_start(void) -{ - rt_hw_spin_lock(&_cpus_lock); - - rt_hw_mmu_ktbl_set((unsigned long)MMUTable); - - // interrupt init - rt_hw_vector_init(); - - arm_gic_cpu_init(0, 0); - -#ifdef BSP_USING_GICV3 - arm_gic_redist_init(0, 0); -#endif /* BSP_USING_GICV3 */ - - // local timer init - rt_hw_gtimer_init(); - - rt_system_scheduler_start(); -} - -#endif // SMP |
