浏览代码

[POWERPC] Disable broken PPC_PTRACE_GETFPREGS on 32 bits

The handling of PPC_PTRACE_GETFPREGS is broken on 32 bits kernel,
it will only return half of the registers. Since that call didn't
initially exist for 32 bits kernel (added recently), rather than
fixing it, let's just remove it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Benjamin Herrenschmidt 18 年之前
父节点
当前提交
0b3d5c48a9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/powerpc/kernel/ptrace.c

+ 2 - 0
arch/powerpc/kernel/ptrace.c

@@ -434,6 +434,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 		break;
 		break;
 	}
 	}
 
 
+#ifdef CONFIG_PPC64
 	case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */
 	case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */
 		int i;
 		int i;
 		unsigned long *reg = &((unsigned long *)child->thread.fpr)[0];
 		unsigned long *reg = &((unsigned long *)child->thread.fpr)[0];
@@ -467,6 +468,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 		}
 		}
 		break;
 		break;
 	}
 	}
+#endif /* CONFIG_PPC64 */
 
 
 #ifdef CONFIG_ALTIVEC
 #ifdef CONFIG_ALTIVEC
 	case PTRACE_GETVRREGS:
 	case PTRACE_GETVRREGS: