Skip to content

Commit d909e24

Browse files
committed
arch/xtensa: Don't dump unsupported backtraces with call0
The backtrace mechanism is specific to the windowed call ABI currently, so doesn't work with call0. This was hidden previously because backtraces were disabled by default at the kconfig level for the old ("sample_controller") qemu_xtensa, but are on now with dc233c for essentially arbitrary reasons. There was some protection against this already, extend it to the case where "we have windows, but aren't using them". Signed-off-by: Andy Ross <andyross@google.com>
1 parent 4954981 commit d909e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/core/fatal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void z_xtensa_fatal_error(unsigned int reason, const z_arch_esf_t *esf)
104104
coredump(reason, esf, IS_ENABLED(CONFIG_MULTITHREADING) ? k_current_get() : NULL);
105105

106106
#if defined(CONFIG_XTENSA_ENABLE_BACKTRACE)
107-
#if XCHAL_HAVE_WINDOWED
107+
#if XCHAL_HAVE_WINDOWED && !defined(CONFIG_XTENSA_CALL0_ABI)
108108
z_xtensa_backtrace_print(100, (int *)esf);
109109
#endif
110110
#endif

0 commit comments

Comments
 (0)