xtensa: Save SCOMPARE1 on context switches
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
942513cd37
commit
ae8ea29379
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user