diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-12-06 04:43:20 -0500 |
---|---|---|
committer | <ralf@denk.linux-mips.net> | 2006-01-10 08:39:04 -0500 |
commit | 07a801def46f412a7ce6de9553dfd8895bf33356 (patch) | |
tree | e46385e7d44fa8218b55d885e73f1b5ac9ca9944 /include/asm-mips/dsp.h | |
parent | f12555d24ca636569b51c6f104aab41b2bba8c32 (diff) |
MIPS: DSP: Set all register masks to 0x3ff.
0x2ff was a typo and the value 0x1f of DSP_MASK was refering to an old
version of the documentation.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/dsp.h')
-rw-r--r-- | include/asm-mips/dsp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-mips/dsp.h b/include/asm-mips/dsp.h index 2fb8aa35fbe5..e9bfc0813c72 100644 --- a/include/asm-mips/dsp.h +++ b/include/asm-mips/dsp.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <asm/mipsregs.h> | 16 | #include <asm/mipsregs.h> |
17 | 17 | ||
18 | #define DSP_DEFAULT 0x00000000 | 18 | #define DSP_DEFAULT 0x00000000 |
19 | #define DSP_MASK 0x1f | 19 | #define DSP_MASK 0x3ff |
20 | 20 | ||
21 | #define __enable_dsp_hazard() \ | 21 | #define __enable_dsp_hazard() \ |
22 | do { \ | 22 | do { \ |
@@ -48,7 +48,7 @@ do { \ | |||
48 | tsk->thread.dsp.dspr[3] = mflo2(); \ | 48 | tsk->thread.dsp.dspr[3] = mflo2(); \ |
49 | tsk->thread.dsp.dspr[4] = mfhi3(); \ | 49 | tsk->thread.dsp.dspr[4] = mfhi3(); \ |
50 | tsk->thread.dsp.dspr[5] = mflo3(); \ | 50 | tsk->thread.dsp.dspr[5] = mflo3(); \ |
51 | tsk->thread.dsp.dspcontrol = rddsp(0x2ff); \ | 51 | tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \ |
52 | } while (0) | 52 | } while (0) |
53 | 53 | ||
54 | #define save_dsp(tsk) \ | 54 | #define save_dsp(tsk) \ |
@@ -65,7 +65,7 @@ do { \ | |||
65 | mtlo2(tsk->thread.dsp.dspr[3]); \ | 65 | mtlo2(tsk->thread.dsp.dspr[3]); \ |
66 | mthi3(tsk->thread.dsp.dspr[4]); \ | 66 | mthi3(tsk->thread.dsp.dspr[4]); \ |
67 | mtlo3(tsk->thread.dsp.dspr[5]); \ | 67 | mtlo3(tsk->thread.dsp.dspr[5]); \ |
68 | wrdsp(tsk->thread.dsp.dspcontrol, 0x2ff); \ | 68 | wrdsp(tsk->thread.dsp.dspcontrol, DSP_MASK); \ |
69 | } while (0) | 69 | } while (0) |
70 | 70 | ||
71 | #define restore_dsp(tsk) \ | 71 | #define restore_dsp(tsk) \ |