aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ptrace.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2007-06-04 01:15:39 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-14 08:29:56 -0400
commit0b3d5c48a98f7bd2d38962f5a67b480ac5656fb9 (patch)
treefcf70b1baa040dc569dedb4b55d224b75cf7dce2 /arch/powerpc/kernel/ptrace.c
parentcbe709c1683dd54a2ec2981c9e8415cb3176f4e0 (diff)
[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>
Diffstat (limited to 'arch/powerpc/kernel/ptrace.c')
-rw-r--r--arch/powerpc/kernel/ptrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index bf76562167c3..36db6f5cb54c 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -434,6 +434,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
434 break; 434 break;
435 } 435 }
436 436
437#ifdef CONFIG_PPC64
437 case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */ 438 case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */
438 int i; 439 int i;
439 unsigned long *reg = &((unsigned long *)child->thread.fpr)[0]; 440 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)
467 } 468 }
468 break; 469 break;
469 } 470 }
471#endif /* CONFIG_PPC64 */
470 472
471#ifdef CONFIG_ALTIVEC 473#ifdef CONFIG_ALTIVEC
472 case PTRACE_GETVRREGS: 474 case PTRACE_GETVRREGS: