Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0b3d5c48a98f7bd2d38962f5a67b480ac5656fb9
Commit:     0b3d5c48a98f7bd2d38962f5a67b480ac5656fb9
Parent:     cbe709c1683dd54a2ec2981c9e8415cb3176f4e0
Author:     Benjamin Herrenschmidt <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 4 15:15:39 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Jun 14 22:29:56 2007 +1000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/ptrace.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index bf76562..36db6f5 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)
                break;
        }
 
+#ifdef CONFIG_PPC64
        case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */
                int i;
                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;
        }
+#endif /* CONFIG_PPC64 */
 
 #ifdef CONFIG_ALTIVEC
        case PTRACE_GETVRREGS:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to