Skip to content

Commit b75b010

Browse files
ioannisggalak
authored andcommitted
arch: arm: Stack Overflow Usage Fault log for ARMv8-M Mainline
This commit contributes the Stack Overflow UsageFault dumping for ARMv8-M implementations that support the Main Extension. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent cfab6e0 commit b75b010

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm/core/fault.c

+5
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ static void _UsageFault(const NANO_ESF *esf)
252252
if (SCB->CFSR & SCB_CFSR_UNALIGNED_Msk) {
253253
PR_EXC(" Unaligned memory access\n");
254254
}
255+
#if defined(CONFIG_ARMV8_M_MAINLINE)
256+
if (SCB->CFSR & SCB_CFSR_STKOF_Msk) {
257+
PR_EXC(" Stack overflow\n");
258+
}
259+
#endif /* CONFIG_ARMV8_M_MAINLINE */
255260
if (SCB->CFSR & SCB_CFSR_NOCP_Msk) {
256261
PR_EXC(" No coprocessor instructions\n");
257262
}

0 commit comments

Comments
 (0)