diff options
author | Michael Neuling <mikey@neuling.org> | 2009-04-05 20:59:39 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-04-07 15:19:00 +1000 |
commit | bc826666e4252f78d2b144af3b7d699ff5efce0a (patch) | |
tree | 0055ba76c78f91d7039f8918f80c2979850f6415 /arch/powerpc/kernel/ftrace.c | |
parent | c7d07fdd5af084bbd0a7921f9b07037b9bc8829d (diff) |
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>
Diffstat (limited to 'arch/powerpc/kernel/ftrace.c')
0 files changed, 0 insertions, 0 deletions