瀏覽代碼

sh: Stubs for fpu disabled on SH-5.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 17 年之前
父節點
當前提交
ffd25eb6cd
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      include/asm-sh/processor_64.h

+ 5 - 0
include/asm-sh/processor_64.h

@@ -262,11 +262,16 @@ static inline void grab_fpu(struct pt_regs *regs)
 #define FPSCR_INIT  0x00000000
 #endif
 
+#ifdef CONFIG_SH_FPU
 /* Save the current FP regs */
 void fpsave(struct sh_fpu_hard_struct *fpregs);
 
 /* Initialise the FP state of a task */
 void fpinit(struct sh_fpu_hard_struct *fpregs);
+#else
+#define fpsave(fpregs)	do { } while (0)
+#define fpinit(fpregs)	do { } while (0)
+#endif
 
 extern struct task_struct *last_task_used_math;