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
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ FUNC_NORETURN __weak void z_arch_system_halt(unsigned int reason)
|
||||||
|
|
||||||
(void)z_arch_irq_lock();
|
(void)z_arch_irq_lock();
|
||||||
for (;;) {
|
for (;;) {
|
||||||
k_cpu_idle();
|
/* Spin endlessly */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* LCOV_EXCL_STOP */
|
/* LCOV_EXCL_STOP */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue