mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
risc-v: Support more than 2 cores in riscv_cpu_boot
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user