Skip to content

Commit

Permalink
[POWERPC] Disable broken PPC_PTRACE_GETFPREGS on 32 bits
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jun 14, 2007
1 parent cbe709c commit 0b3d5c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
break;
}

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

#ifdef CONFIG_ALTIVEC
case PTRACE_GETVRREGS:
Expand Down

0 comments on commit 0b3d5c4

Please sign in to comment.