mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
committed by
Petro Karashchenko
parent
7ac2d3a5ac
commit
5c951d8c4a
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user