risc-v: Support more than 2 cores in riscv_cpu_boot

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2022-02-17 21:17:38 +08:00
committed by Xiang Xiao
parent 7c18290331
commit 36ff081b1a
+1 -6
View File
@@ -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));