xtensa_swint.c: Restore the coprocessor state at the end for consistency.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
7c57739d1d
commit
f0a5777a26
@ -131,12 +131,12 @@ int xtensa_swint(int irq, void *context, void *arg)
|
||||
|
||||
case SYS_restore_context:
|
||||
{
|
||||
DEBUGASSERT(regs[REG_A3] != 0);
|
||||
CURRENT_REGS = (uint32_t *)regs[REG_A3];
|
||||
#if XCHAL_CP_NUM > 0
|
||||
cpstate = (uintptr_t)regs[REG_A3] + cpstate_off;
|
||||
xtensa_coproc_restorestate((struct xtensa_cpstate_s *)cpstate);
|
||||
#endif
|
||||
DEBUGASSERT(regs[REG_A3] != 0);
|
||||
CURRENT_REGS = (uint32_t *)regs[REG_A3];
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user