#include <asm/cpu.h>
#include <asm/cpu-features.h>
#include <asm/hazards.h>
#include <asm/mipsregs.h>
Go to the source code of this file.
#define __enable_dsp_hazard |
( |
| ) |
|
Value:do { \
asm("_ehb"); \
} while (0)
Definition at line 21 of file dsp.h.
#define __get_dsp_regs |
( |
|
tsk | ) |
|
Value:({ \
\
tsk->thread.dsp.dspr; \
})
Definition at line 77 of file dsp.h.
#define __restore_dsp |
( |
|
tsk | ) |
|
Value:do { \
mthi1(tsk->thread.dsp.dspr[0]); \
mtlo1(tsk->thread.dsp.dspr[1]); \
mthi2(tsk->thread.dsp.dspr[2]); \
mtlo2(tsk->thread.dsp.dspr[3]); \
mthi3(tsk->thread.dsp.dspr[4]); \
mtlo3(tsk->thread.dsp.dspr[5]); \
wrdsp(tsk->thread.dsp.dspcontrol,
DSP_MASK); \
} while (0)
Definition at line 60 of file dsp.h.
#define __save_dsp |
( |
|
tsk | ) |
|
Value:do { \
tsk->thread.dsp.dspr[0] =
mfhi1(); \
tsk->thread.dsp.dspr[1] =
mflo1(); \
tsk->thread.dsp.dspr[2] =
mfhi2(); \
tsk->thread.dsp.dspr[3] =
mflo2(); \
tsk->thread.dsp.dspr[4] =
mfhi3(); \
tsk->thread.dsp.dspr[5] =
mflo3(); \
} while (0)
Definition at line 43 of file dsp.h.
#define DSP_DEFAULT 0x00000000 |
Definition at line 18 of file dsp.h.
Definition at line 19 of file dsp.h.
#define restore_dsp |
( |
|
tsk | ) |
|
Value:do { \
__restore_dsp(tsk); \
} while (0)
Definition at line 71 of file dsp.h.
Value:do { \
__save_dsp(tsk); \
} while (0)
Definition at line 54 of file dsp.h.