This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 36ff081b1a1d01cf938a45bb80d0b213c76c10ea Author: Huang Qi <[email protected]> AuthorDate: Thu Feb 17 21:17:38 2022 +0800 risc-v: Support more than 2 cores in riscv_cpu_boot Signed-off-by: Huang Qi <[email protected]> --- arch/risc-v/src/common/riscv_cpustart.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/risc-v/src/common/riscv_cpustart.c b/arch/risc-v/src/common/riscv_cpustart.c index abc2086..586d4ca 100644 --- a/arch/risc-v/src/common/riscv_cpustart.c +++ b/arch/risc-v/src/common/riscv_cpustart.c @@ -49,7 +49,7 @@ * Name: riscv_cpu_boot * * Description: - * Boot handler for cpu1 + * Boot handler for cpu[x] * * Input Parameters: * None @@ -61,11 +61,6 @@ void riscv_cpu_boot(int cpu) { - if (1 < cpu) - { - return; - } - /* Clear machine software interrupt for CPU(cpu) */ putreg32(0, (uintptr_t)RISCV_CLINT_MSIP + (4 * cpu));
