]> err.no Git - linux-2.6/commitdiff
MIPS: DSP: Context switch the DSPcontrol register also.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 5 Dec 2005 13:39:25 +0000 (13:39 +0000)
committer <ralf@denk.linux-mips.net> <>
Tue, 10 Jan 2006 13:39:04 +0000 (13:39 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/dsp.h

index 50f556bb49783d871d479366422ea2f59dd56d67..2fb8aa35fbe5ce4da4662acc7fee1184f66093e2 100644 (file)
@@ -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)                                               \