@@ -394,9 +394,11 @@ long arch_ptrace(struct task_struct *child, long request,
tmp = 0;
} else {
unsigned long index;
+#ifdef CONFIG_SH_FPU
ret = init_fpu(child);
if (ret)
break;
+#endif
index = addr - offsetof(struct user, fpu);
tmp = ((unsigned long *)child->thread.xstate)
[index >> 2];
@@ -428,9 +430,11 @@ long arch_ptrace(struct task_struct *child, long request,
else if (addr >= offsetof(struct user, fpu) &&
addr < offsetof(struct user, u_fpvalid)) {
unsigned long index;
+#ifdef CONFIG_SH_FPU
ret = init_fpu(child);
if (ret)
break;
+#endif
index = addr - offsetof(struct user, fpu);
set_stopped_child_used_math(child);
((unsigned long *)child->thread.xstate)
@@ -403,9 +403,11 @@ long arch_ptrace(struct task_struct *child, long request,
else if ((addr >= offsetof(struct user, fpu)) &&
(addr < offsetof(struct user, u_fpvalid))) {
unsigned long index;
+#ifdef CONFIG_SH_FPU
ret = init_fpu(child);
if (ret)
break;
+#endif
index = addr - offsetof(struct user, fpu);
tmp = get_fpu_long(child, index);
} else if (addr == offsetof(struct user, u_fpvalid)) {
@@ -445,9 +447,11 @@ long arch_ptrace(struct task_struct *child, long request,
else if ((addr >= offsetof(struct user, fpu)) &&
(addr < offsetof(struct user, u_fpvalid))) {
unsigned long index;
+#ifdef CONFIG_SH_FPU
ret = init_fpu(child);
if (ret)
break;
+#endif
index = addr - offsetof(struct user, fpu);
ret = put_fpu_long(child, index, data);
}