xtensa/common: Fix Xtensa interrupt stack context restore issue
This commit is contained in:
parent
49a5f02fb1
commit
f47cb67da6
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user