diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-20 04:44:39 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:51 -0500 |
commit | ffd25eb6cd1aa2bcdedf0c06be7e180022055cd1 (patch) | |
tree | c4f5092bea642450152743bdfc2fef06669ac831 /include/asm-sh | |
parent | e88ed82ef8c385f84333cb8f30aec6dcb1f9e76f (diff) |
sh: Stubs for fpu disabled on SH-5.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r-- | include/asm-sh/processor_64.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-sh/processor_64.h b/include/asm-sh/processor_64.h index 312fd73fb87e..f54648229231 100644 --- a/include/asm-sh/processor_64.h +++ b/include/asm-sh/processor_64.h | |||
@@ -262,11 +262,16 @@ static inline void grab_fpu(struct pt_regs *regs) | |||
262 | #define FPSCR_INIT 0x00000000 | 262 | #define FPSCR_INIT 0x00000000 |
263 | #endif | 263 | #endif |
264 | 264 | ||
265 | #ifdef CONFIG_SH_FPU | ||
265 | /* Save the current FP regs */ | 266 | /* Save the current FP regs */ |
266 | void fpsave(struct sh_fpu_hard_struct *fpregs); | 267 | void fpsave(struct sh_fpu_hard_struct *fpregs); |
267 | 268 | ||
268 | /* Initialise the FP state of a task */ | 269 | /* Initialise the FP state of a task */ |
269 | void fpinit(struct sh_fpu_hard_struct *fpregs); | 270 | void fpinit(struct sh_fpu_hard_struct *fpregs); |
271 | #else | ||
272 | #define fpsave(fpregs) do { } while (0) | ||
273 | #define fpinit(fpregs) do { } while (0) | ||
274 | #endif | ||
270 | 275 | ||
271 | extern struct task_struct *last_task_used_math; | 276 | extern struct task_struct *last_task_used_math; |
272 | 277 | ||