xtensa: Save SCOMPARE1 on context switches
@@ -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)
