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 780acd7827
commit a9da6ab4b5
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