arm-M: set current regs for crash dump
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
8b8a2610ab
commit
946b01d4a8
@ -74,8 +74,18 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* Set current regs for crash dump */
|
||||||
|
|
||||||
|
up_set_current_regs(regs);
|
||||||
|
|
||||||
|
/* Dispatch irq */
|
||||||
|
|
||||||
tcb->xcp.regs = regs;
|
tcb->xcp.regs = regs;
|
||||||
irq_dispatch(irq, regs);
|
irq_dispatch(irq, regs);
|
||||||
|
|
||||||
|
/* Clear current regs */
|
||||||
|
|
||||||
|
up_set_current_regs(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If a context switch occurred while processing the interrupt then
|
/* If a context switch occurred while processing the interrupt then
|
||||||
|
@ -74,8 +74,18 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* Set current regs for crash dump */
|
||||||
|
|
||||||
|
up_set_current_regs(regs);
|
||||||
|
|
||||||
|
/* Dispatch irq */
|
||||||
|
|
||||||
tcb->xcp.regs = regs;
|
tcb->xcp.regs = regs;
|
||||||
irq_dispatch(irq, regs);
|
irq_dispatch(irq, regs);
|
||||||
|
|
||||||
|
/* Clear current regs */
|
||||||
|
|
||||||
|
up_set_current_regs(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If a context switch occurred while processing the interrupt then
|
/* If a context switch occurred while processing the interrupt then
|
||||||
|
@ -74,8 +74,18 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* Set current regs for crash dump */
|
||||||
|
|
||||||
|
up_set_current_regs(regs);
|
||||||
|
|
||||||
|
/* Dispatch irq */
|
||||||
|
|
||||||
tcb->xcp.regs = regs;
|
tcb->xcp.regs = regs;
|
||||||
irq_dispatch(irq, regs);
|
irq_dispatch(irq, regs);
|
||||||
|
|
||||||
|
/* Clear current regs */
|
||||||
|
|
||||||
|
up_set_current_regs(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If a context switch occurred while processing the interrupt then
|
/* If a context switch occurred while processing the interrupt then
|
||||||
|
Loading…
Reference in New Issue
Block a user