diff options
Diffstat (limited to 'bsps/riscv/riscv/start/bspsmp.c')
-rw-r--r-- | bsps/riscv/riscv/start/bspsmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/riscv/riscv/start/bspsmp.c b/bsps/riscv/riscv/start/bspsmp.c index 4f1b3c93cc..91f4f7b96a 100644 --- a/bsps/riscv/riscv/start/bspsmp.c +++ b/bsps/riscv/riscv/start/bspsmp.c @@ -49,7 +49,7 @@ void bsp_start_on_secondary_processor(Per_CPU_Control *cpu_self) uint32_t _CPU_SMP_Initialize(void) { - return riscv_hart_count; + return riscv_hart_count - RISCV_BOOT_HARTID; } bool _CPU_SMP_Start_processor(uint32_t cpu_index) |