diff --git a/arch/riscv/core/smp.c b/arch/riscv/core/smp.c index bc56c1fba8c..15cb0063950 100644 --- a/arch/riscv/core/smp.c +++ b/arch/riscv/core/smp.c @@ -74,11 +74,11 @@ void arch_secondary_cpu_init(int hartid) #endif #ifdef CONFIG_SMP irq_enable(RISCV_IRQ_MSOFT); +#endif /* CONFIG_SMP */ #ifdef CONFIG_PLIC_IRQ_AFFINITY /* Enable on secondary cores so that they can respond to PLIC */ irq_enable(RISCV_IRQ_MEXT); #endif /* CONFIG_PLIC_IRQ_AFFINITY */ -#endif /* CONFIG_SMP */ riscv_cpu_init[cpu_num].fn(riscv_cpu_init[cpu_num].arg); }