Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da2c9ed5 authored by Ralf Baechle's avatar Ralf Baechle Committed by
Browse files

MIPS: DSP: Context switch the DSPcontrol register also.

parent 97712717
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ do { \
	tsk->thread.dsp.dspr[3] = mflo2();				\
	tsk->thread.dsp.dspr[4] = mfhi3();				\
	tsk->thread.dsp.dspr[5] = mflo3();				\
	tsk->thread.dsp.dspcontrol = rddsp(0x2ff);			\
} while (0)

#define save_dsp(tsk)							\
@@ -64,6 +65,7 @@ do { \
	mtlo2(tsk->thread.dsp.dspr[3]);					\
	mthi3(tsk->thread.dsp.dspr[4]);					\
	mtlo3(tsk->thread.dsp.dspr[5]);					\
	wrdsp(tsk->thread.dsp.dspcontrol, 0x2ff);			\
} while (0)

#define restore_dsp(tsk)						\