From: Ralf Baechle Date: Mon, 5 Dec 2005 13:39:25 +0000 (+0000) Subject: MIPS: DSP: Context switch the DSPcontrol register also. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da2c9ed55b0c7e8107f23530bde293239a0b5091;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git MIPS: DSP: Context switch the DSPcontrol register also. Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/dsp.h b/include/asm-mips/dsp.h index 50f556bb4978..2fb8aa35fbe5 100644 --- a/include/asm-mips/dsp.h +++ b/include/asm-mips/dsp.h @@ -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) \