]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: PTRACE_PEEKUSR/PTRACE_POKEUSER of FPR registers in little endian builds
authorAnton Blanchard <anton@samba.org>
Mon, 23 Sep 2013 02:04:38 +0000 (12:04 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:48:27 +0000 (16:48 +1100)
commit4b9aff1ec18dd9e3253c000b8a576e4050b553bb
tree9da3fd6e0c527501160535e9095c4596fb4eb056
parente7e3310b304f6f624975bc51a2532d45ccd8514d
powerpc: PTRACE_PEEKUSR/PTRACE_POKEUSER of FPR registers in little endian builds

FPRs overlap the high 64bits of the first 32 VSX registers. The
ptrace FP read/write code assumes big endian ordering and grabs
the lowest 64 bits.

Fix this by using the TS_FPR macro which does the right thing.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ptrace.c