kernel: fix default z_arch_cpu_halt()
k_cpu_idle() re-enables interrupts. Just spin instead. Fixes: #18973 Signed-off-by: Andrew Boie <andrewboie@gmail.com>
This commit is contained in:
parent
0d37373196
commit
90e6536053
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue