summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/ftrace.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2009-04-05 20:59:39 (GMT)
committerPaul Mackerras <paulus@samba.org>2009-04-07 05:19:00 (GMT)
commitbc826666e4252f78d2b144af3b7d699ff5efce0a (patch)
tree0055ba76c78f91d7039f8918f80c2979850f6415 /arch/powerpc/kernel/ftrace.c
parentc7d07fdd5af084bbd0a7921f9b07037b9bc8829d (diff)
downloadlinux-fsl-qoriq-bc826666e4252f78d2b144af3b7d699ff5efce0a.tar.xz
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