Commit 90e65360 authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

kernel: fix default z_arch_cpu_halt()



k_cpu_idle() re-enables interrupts. Just spin
instead.

Fixes: #18973

Signed-off-by: default avatarAndrew Boie <andrewboie@gmail.com>
parent 0d373731
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ FUNC_NORETURN __weak void z_arch_system_halt(unsigned int reason)

	(void)z_arch_irq_lock();
	for (;;) {
		k_cpu_idle();
		/* Spin endlessly */
	}
}
/* LCOV_EXCL_STOP */