xtensa/common: Fix Xtensa interrupt stack context restore issue

This commit is contained in:
Dong Heng 2023-02-28 14:38:10 -03:00 committed by Gustavo Henrique Nihei
parent 49a5f02fb1
commit f47cb67da6

View File

@ -157,13 +157,20 @@ g_intstacktop:
mov a2, RETVAL
#if CONFIG_ARCH_INTERRUPTSTACK < 15
addi sp, sp, XCPTCONTEXT_SIZE
#endif
j 2f
/* Done */
1:
/* No pending interrupts, simply copy the register save area pointer to
* fulfill the macro exit condition.
*/
mov a2, a12
2:
#if CONFIG_ARCH_INTERRUPTSTACK < 15
addi sp, sp, XCPTCONTEXT_SIZE
#endif
.endm
/****************************************************************************