summaryrefslogtreecommitdiffstats
path: root/bsps/riscv/riscv/start/bspsmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/riscv/riscv/start/bspsmp.c')
-rw-r--r--bsps/riscv/riscv/start/bspsmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/riscv/riscv/start/bspsmp.c b/bsps/riscv/riscv/start/bspsmp.c
index ce5792f5b8..34796a5120 100644
--- a/bsps/riscv/riscv/start/bspsmp.c
+++ b/bsps/riscv/riscv/start/bspsmp.c
@@ -46,7 +46,7 @@ void bsp_start_on_secondary_processor(Per_CPU_Control *cpu_self)
uint32_t _CPU_SMP_Initialize(void)
{
- return riscv_hart_count - RISCV_BOOT_HARTID;
+ return riscv_hart_count;
}
bool _CPU_SMP_Start_processor(uint32_t cpu_index)