Skip to content

Commit 51b166b

Browse files
kv2019ilgirdwood
authored andcommitted
zephyr: wrapper: do not send IPC in fatal handler in test mode
Do not send IPC in case SOF is built with CONFIG_SOF_BOOT_TEST_STANDALONE and IPC subsystem is not fully initialized. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent a8f9008 commit 51b166b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zephyr/wrapper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ void k_sys_fatal_error_handler(unsigned int reason,
333333
/* flush and switch to immediate mode */
334334
LOG_PANIC();
335335

336+
/* IPC not set up in standalone test mode */
337+
#ifndef CONFIG_SOF_BOOT_TEST_STANDALONE
336338
ipc_send_panic_notification();
339+
#endif
337340

338341
#if defined(CONFIG_ARCH_POSIX) || defined(CONFIG_ZEPHYR_POSIX)
339342
LOG_ERR("Halting emulation");

0 commit comments

Comments
 (0)