Index: sys/riscv/riscv/machdep.c =================================================================== --- sys/riscv/riscv/machdep.c +++ sys/riscv/riscv/machdep.c @@ -426,7 +426,10 @@ cpu_halt(void) { - panic("cpu_halt"); + intr_disable(); + while (1) { + __asm __volatile("wfi"); + } } /*