From 5c951d8c4a8ea0013dc0b0c4dacf79c0898786c4 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 19 Apr 2022 11:07:53 +0300 Subject: [PATCH] arm/arm_assert.c Fix dumping of status from ISR The status dump did not work if the first fault triggers before the first context switch (during nx_start()). --- arch/arm/src/common/arm_assert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {