From: Michael Neuling Date: Sun, 5 Apr 2009 20:59:39 +0000 (+0000) Subject: powerpc: Fix ptrace compat wrapper for FPU register access X-Git-Tag: v2.6.30-rc1~134^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc826666e4252f78d2b144af3b7d699ff5efce0a;p=pandora-kernel.git 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 Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed