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
|
mov a2, RETVAL
|
||||||
|
|
||||||
#if CONFIG_ARCH_INTERRUPTSTACK < 15
|
j 2f
|
||||||
addi sp, sp, XCPTCONTEXT_SIZE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Done */
|
/* Done */
|
||||||
|
|
||||||
1:
|
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
|
.endm
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user