]> git.baikalelectronics.ru Git - kernel.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)
commit7ffcd7d5a0807ac51fd77c713942b35868043f84
tree0055ba76c78f91d7039f8918f80c2979850f6415
parent989611fdbd57e519f98c4e638084776199a75e74
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