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:
Andrew Boie 2019-09-06 07:57:41 -07:00 committed by Anas Nashif
parent 0d37373196
commit 90e6536053

View file

@ -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 */