xtensa: Save SCOMPARE1 on context switches

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2022-10-20 16:34:29 -03:00 committed by Xiang Xiao
parent 942513cd37
commit ae8ea29379

View File

@ -138,6 +138,11 @@ _xtensa_context_save:
rsr a3, SAR
s32i a3, sp, (4 * REG_SAR)
#if XCHAL_HAVE_S32C1I != 0
rsr a3, SCOMPARE1
s32i a3, sp, (4 * REG_SCOMPARE1)
#endif
#if XCHAL_HAVE_LOOPS != 0
rsr a3, LBEG
s32i a3, sp, (4 * REG_LBEG)