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()).
This commit is contained in:
Ville Juven 2022-04-19 11:07:53 +03:00 committed by Petro Karashchenko
parent 7ac2d3a5ac
commit 5c951d8c4a
1 changed files with 1 additions and 2 deletions

View File

@ -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
{