arm-M: set current regs for crash dump

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2024-08-13 18:34:16 +08:00 committed by Xiang Xiao
parent 8b8a2610ab
commit 946b01d4a8
3 changed files with 30 additions and 0 deletions

View File

@ -74,8 +74,18 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
}
else
{
/* Set current regs for crash dump */
up_set_current_regs(regs);
/* Dispatch irq */
tcb->xcp.regs = regs;
irq_dispatch(irq, regs);
/* Clear current regs */
up_set_current_regs(NULL);
}
/* If a context switch occurred while processing the interrupt then

View File

@ -74,8 +74,18 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
}
else
{
/* Set current regs for crash dump */
up_set_current_regs(regs);
/* Dispatch irq */
tcb->xcp.regs = regs;
irq_dispatch(irq, regs);
/* Clear current regs */
up_set_current_regs(NULL);
}
/* If a context switch occurred while processing the interrupt then

View File

@ -74,8 +74,18 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
}
else
{
/* Set current regs for crash dump */
up_set_current_regs(regs);
/* Dispatch irq */
tcb->xcp.regs = regs;
irq_dispatch(irq, regs);
/* Clear current regs */
up_set_current_regs(NULL);
}
/* If a context switch occurred while processing the interrupt then