aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/processor_64.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_64.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_64.h')
-rw-r--r--include/asm-sh/processor_64.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/asm-sh/processor_64.h b/include/asm-sh/processor_64.h
index f54648229231..99c22b14a85b 100644
--- a/include/asm-sh/processor_64.h
+++ b/include/asm-sh/processor_64.h
@@ -102,8 +102,6 @@ extern struct sh_cpuinfo cpu_data[];
102 * Single step bit 102 * Single step bit
103 * 103 *
104 */ 104 */
105#define SR_FD 0x00008000
106
107#if defined(CONFIG_SH64_SR_WATCH) 105#if defined(CONFIG_SH64_SR_WATCH)
108#define SR_MMU 0x84000000 106#define SR_MMU 0x84000000
109#else 107#else
@@ -243,16 +241,6 @@ static inline void enable_fpu(void)
243 : "r" (~SR_FD)); 241 : "r" (~SR_FD));
244} 242}
245 243
246static inline void release_fpu(struct pt_regs *regs)
247{
248 regs->sr |= SR_FD;
249}
250
251static inline void grab_fpu(struct pt_regs *regs)
252{
253 regs->sr &= ~SR_FD;
254}
255
256/* Round to nearest, no exceptions on inexact, overflow, underflow, 244/* Round to nearest, no exceptions on inexact, overflow, underflow,
257 zero-divide, invalid. Configure option for whether to flush denorms to 245 zero-divide, invalid. Configure option for whether to flush denorms to
258 zero, or except if a denorm is encountered. */ 246 zero, or except if a denorm is encountered. */
@@ -263,13 +251,9 @@ static inline void grab_fpu(struct pt_regs *regs)
263#endif 251#endif
264 252
265#ifdef CONFIG_SH_FPU 253#ifdef CONFIG_SH_FPU
266/* Save the current FP regs */
267void fpsave(struct sh_fpu_hard_struct *fpregs);
268
269/* Initialise the FP state of a task */ 254/* Initialise the FP state of a task */
270void fpinit(struct sh_fpu_hard_struct *fpregs); 255void fpinit(struct sh_fpu_hard_struct *fpregs);
271#else 256#else
272#define fpsave(fpregs) do { } while (0)
273#define fpinit(fpregs) do { } while (0) 257#define fpinit(fpregs) do { } while (0)
274#endif 258#endif
275 259