aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/processor_32.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-22 03:30:50 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:55 -0500
commit332fd57b92d26e2ac6112340b98e92bb76117a41 (patch)
treefbbc00a900299ad91f46a74b8f2d42efaf4809af /include/asm-sh/processor_32.h
parentb6d7b666097e79a8908e3c43fd55fd291a95e133 (diff)
sh: Bring the SH-5 FPU in line with the SH-4 FPU API.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/processor_32.h')
-rw-r--r--include/asm-sh/processor_32.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/asm-sh/processor_32.h b/include/asm-sh/processor_32.h
index 1ad74633c009..a7edaa1a870c 100644
--- a/include/asm-sh/processor_32.h
+++ b/include/asm-sh/processor_32.h
@@ -65,7 +65,6 @@ extern struct sh_cpuinfo cpu_data[];
65 * IMASK-bit: 65 * IMASK-bit:
66 * Interrupt level mask 66 * Interrupt level mask
67 */ 67 */
68#define SR_FD 0x00008000
69#define SR_DSP 0x00001000 68#define SR_DSP 0x00001000
70#define SR_IMASK 0x000000f0 69#define SR_IMASK 0x000000f0
71 70
@@ -178,31 +177,6 @@ static __inline__ void enable_fpu(void)
178 : "r" (~SR_FD)); 177 : "r" (~SR_FD));
179} 178}
180 179
181static __inline__ void release_fpu(struct pt_regs *regs)
182{
183 regs->sr |= SR_FD;
184}
185
186static __inline__ void grab_fpu(struct pt_regs *regs)
187{
188 regs->sr &= ~SR_FD;
189}
190
191extern void save_fpu(struct task_struct *__tsk, struct pt_regs *regs);
192
193#define unlazy_fpu(tsk, regs) do { \
194 if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \
195 save_fpu(tsk, regs); \
196 } \
197} while (0)
198
199#define clear_fpu(tsk, regs) do { \
200 if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \
201 clear_tsk_thread_flag(tsk, TIF_USEDFPU); \
202 release_fpu(regs); \
203 } \
204} while (0)
205
206/* Double presision, NANS as NANS, rounding to nearest, no exceptions */ 180/* Double presision, NANS as NANS, rounding to nearest, no exceptions */
207#define FPSCR_INIT 0x00080000 181#define FPSCR_INIT 0x00080000
208 182