diff --git a/arch/arm/src/common/arm_assert.c b/arch/arm/src/common/arm_assert.c index 928f8501c7..40f481360f 100644 --- a/arch/arm/src/common/arm_assert.c +++ b/arch/arm/src/common/arm_assert.c @@ -366,8 +366,7 @@ static void arm_dumpstate(void) if (CURRENT_REGS) { - memcpy(rtcb->xcp.regs, - (uintptr_t *)CURRENT_REGS, XCPTCONTEXT_SIZE); + rtcb->xcp.regs = (uint32_t *)CURRENT_REGS; } else {