zephyr: wrapper: halt the system in fatal error handler

Follow the k_sys_fatal_error_handler implementation in fatal.c in
zephyr framework. Without this halt, our k_sys_fatal_error_handler
will be called copules time and result to many useless IPC messages
to host.

Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
Rander Wang 2023-06-01 15:24:16 +08:00 committed by Kai Vehmanen
parent 869666061b
commit 2c757064b1
1 changed files with 1 additions and 0 deletions

View File

@ -336,4 +336,5 @@ void k_sys_fatal_error_handler(unsigned int reason,
ipc_send_panic_notification();
LOG_ERR("Halting system");
k_fatal_halt(reason);
}