One register getting clobber on context save

This commit is contained in:
Gregory Nutt 2016-12-17 08:10:10 -06:00
parent adbacfc42c
commit 05e798488b
2 changed files with 1 additions and 2 deletions

View File

@ -116,7 +116,6 @@
_xtensa_context_save:
s32i a2, a2, (4 * REG_A2)
s32i a3, a2, (4 * REG_A3)
s32i a4, a2, (4 * REG_A4)
s32i a5, a2, (4 * REG_A5)

View File

@ -290,7 +290,7 @@ _xtensa_level1_handler:
l32i a0, a2, (4 * REG_A0) /* Retrieve interruptee's A0 */
l32i sp, a2, (4 * REG_A1) /* Remove interrupt stack frame */
l32i a2, a2, (4 * REG_A2) /* Retrieve interruptee's A2 */
rsync /* Ensure EPS and EPC written */
rsync /* Ensure PS and EPC written */
/* Return from exception. RFE returns from either the UserExceptionVector
* or the KernelExceptionVector. RFE sets PS.EXCM back to 0, and then