diff --git a/arch/arm/src/armv6-m/arm_assert.c b/arch/arm/src/armv6-m/arm_assert.c index 16e76763bf..c89ec728a3 100644 --- a/arch/arm/src/armv6-m/arm_assert.c +++ b/arch/arm/src/armv6-m/arm_assert.c @@ -107,12 +107,14 @@ static inline void up_registerdump(FAR volatile uint32_t *regs) /* Dump the interrupt registers */ - _alert("R0: %08x %08x %08x %08x %08x %08x %08x %08x\n", - regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3], - regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]); - _alert("R8: %08x %08x %08x %08x %08x %08x %08x %08x\n", - regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11], - regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]); + _alert("R0: %08x R1: %08x R2: %08x R3: %08x\n", + regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3]); + _alert("R4: %08x R5: %08x R6: %08x FP: %08x\n", + regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]); + _alert("R8: %08x SB: %08x SL: %08x R11: %08x\n", + regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11]); + _alert("IP: %08x SP: %08x LR: %08x PC: %08x\n", + regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]); #ifdef CONFIG_BUILD_PROTECTED _alert("xPSR: %08x PRIMASK: %08x EXEC_RETURN: %08x\n", regs[REG_XPSR], regs[REG_PRIMASK], regs[REG_EXC_RETURN]); diff --git a/arch/arm/src/armv7-m/arm_assert.c b/arch/arm/src/armv7-m/arm_assert.c index c317d8d3e9..6fb26a51b5 100644 --- a/arch/arm/src/armv7-m/arm_assert.c +++ b/arch/arm/src/armv7-m/arm_assert.c @@ -110,12 +110,14 @@ static inline void up_registerdump(FAR volatile uint32_t *regs) /* Dump the interrupt registers */ - _alert("R0: %08x %08x %08x %08x %08x %08x %08x %08x\n", - regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3], - regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]); - _alert("R8: %08x %08x %08x %08x %08x %08x %08x %08x\n", - regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11], - regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]); + _alert("R0: %08x R1: %08x R2: %08x R3: %08x\n", + regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3]); + _alert("R4: %08x R5: %08x R6: %08x FP: %08x\n", + regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]); + _alert("R8: %08x SB: %08x SL: %08x R11: %08x\n", + regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11]); + _alert("IP: %08x SP: %08x LR: %08x PC: %08x\n", + regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]); #ifdef CONFIG_ARMV7M_USEBASEPRI _alert("xPSR: %08x BASEPRI: %08x CONTROL: %08x\n", @@ -125,7 +127,7 @@ static inline void up_registerdump(FAR volatile uint32_t *regs) regs[REG_XPSR], regs[REG_PRIMASK], getcontrol()); #endif -#ifdef REG_EXC_RETURN +#ifdef CONFIG_BUILD_PROTECTED _alert("EXC_RETURN: %08x\n", regs[REG_EXC_RETURN]); #endif } diff --git a/arch/arm/src/armv8-m/arm_assert.c b/arch/arm/src/armv8-m/arm_assert.c index 7cf43bd3af..1e34cdfe81 100644 --- a/arch/arm/src/armv8-m/arm_assert.c +++ b/arch/arm/src/armv8-m/arm_assert.c @@ -110,12 +110,14 @@ static inline void up_registerdump(FAR volatile uint32_t *regs) /* Dump the interrupt registers */ - _alert("R0: %08x %08x %08x %08x %08x %08x %08x %08x\n", - regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3], - regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]); - _alert("R8: %08x %08x %08x %08x %08x %08x %08x %08x\n", - regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11], - regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]); + _alert("R0: %08x R1: %08x R2: %08x R3: %08x\n", + regs[REG_R0], regs[REG_R1], regs[REG_R2], regs[REG_R3]); + _alert("R4: %08x R5: %08x R6: %08x FP: %08x\n", + regs[REG_R4], regs[REG_R5], regs[REG_R6], regs[REG_R7]); + _alert("R8: %08x SB: %08x SL: %08x R11: %08x\n", + regs[REG_R8], regs[REG_R9], regs[REG_R10], regs[REG_R11]); + _alert("IP: %08x SP: %08x LR: %08x PC: %08x\n", + regs[REG_R12], regs[REG_R13], regs[REG_R14], regs[REG_R15]); #ifdef CONFIG_ARMV8M_USEBASEPRI _alert("xPSR: %08x BASEPRI: %08x CONTROL: %08x\n", @@ -125,7 +127,7 @@ static inline void up_registerdump(FAR volatile uint32_t *regs) regs[REG_XPSR], regs[REG_PRIMASK], getcontrol()); #endif -#ifdef REG_EXC_RETURN +#ifdef CONFIG_BUILD_PROTECTED _alert("EXC_RETURN: %08x\n", regs[REG_EXC_RETURN]); #endif }