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:
parent
5c951d8c4a
commit
5b6dd876b8
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue