Skip to content

Commit 7328849

Browse files
ioannisgnashif
authored andcommitted
arm: cortex_m: log EXC_RETURN value in fatal.c
If CONFIG_EXTRA_EXCEPTION_INFO is enabled, log the value of EXC_RETURN in the fault handler. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent cafe045 commit 7328849

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm/core/aarch32/fatal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ static void esf_dump(const z_arch_esf_t *esf)
4545
LOG_ERR("r10/v7: 0x%08x r11/v8: 0x%08x psp: 0x%08x",
4646
callee->v7, callee->v8, callee->psp);
4747
}
48+
49+
LOG_ERR("EXC_RETURN: 0x%0x", esf->extra_info.exc_return);
50+
4851
#endif /* CONFIG_EXTRA_EXCEPTION_INFO */
4952
LOG_ERR("Faulting instruction address (r15/pc): 0x%08x",
5053
esf->basic.pc);

0 commit comments

Comments
 (0)