risc-v/riscv_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:08:11 +03:00 committed by Petro Karashchenko
parent 5c951d8c4a
commit 5b6dd876b8
1 changed files with 1 additions and 2 deletions

View File

@ -332,8 +332,7 @@ static void riscv_dumpstate(void)
if (CURRENT_REGS)
{
memcpy(rtcb->xcp.regs,
(uintptr_t *)CURRENT_REGS, XCPTCONTEXT_SIZE);
rtcb->xcp.regs = (uintptr_t *)CURRENT_REGS;
}
else
{