Go to the documentation of this file.
14 #include <asm/cpu-features.h>
18 #define DSP_DEFAULT 0x00000000
19 #define DSP_MASK 0x3ff
21 #define __enable_dsp_hazard() \
26 static inline void __init_dsp(
void)
37 static inline void init_dsp(
void)
43 #define __save_dsp(tsk) \
45 tsk->thread.dsp.dspr[0] = mfhi1(); \
46 tsk->thread.dsp.dspr[1] = mflo1(); \
47 tsk->thread.dsp.dspr[2] = mfhi2(); \
48 tsk->thread.dsp.dspr[3] = mflo2(); \
49 tsk->thread.dsp.dspr[4] = mfhi3(); \
50 tsk->thread.dsp.dspr[5] = mflo3(); \
51 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \
54 #define save_dsp(tsk) \
60 #define __restore_dsp(tsk) \
62 mthi1(tsk->thread.dsp.dspr[0]); \
63 mtlo1(tsk->thread.dsp.dspr[1]); \
64 mthi2(tsk->thread.dsp.dspr[2]); \
65 mtlo2(tsk->thread.dsp.dspr[3]); \
66 mthi3(tsk->thread.dsp.dspr[4]); \
67 mtlo3(tsk->thread.dsp.dspr[5]); \
68 wrdsp(tsk->thread.dsp.dspcontrol, DSP_MASK); \
71 #define restore_dsp(tsk) \
77 #define __get_dsp_regs(tsk) \
80 __save_dsp(current); \
82 tsk->thread.dsp.dspr; \