]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fix ptrace compat wrapper for FPU register access
authorMichael Neuling <mikey@neuling.org>
Sun, 5 Apr 2009 20:59:39 +0000 (20:59 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 7 Apr 2009 05:19:00 +0000 (15:19 +1000)
commitbc826666e4252f78d2b144af3b7d699ff5efce0a
tree0055ba76c78f91d7039f8918f80c2979850f6415
parentc7d07fdd5af084bbd0a7921f9b07037b9bc8829d
powerpc: Fix ptrace compat wrapper for FPU register access

The ptrace compat wrapper mishandles access to the fpu registers.  The
PTRACE_PEEKUSR and PTRACE_POKEUSR requests miscalculate the index into
the fpr array due to the broken FPINDEX macro.  The
PPC_PTRACE_PEEKUSR_3264 request needs to use the same formula that the
native ptrace interface uses when operating on the register number (as
opposed to the 4-byte offset).  The PPC_PTRACE_POKEUSR_3264 request
didn't take TS_FPRWIDTH into account.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ptrace32.c