arm64: ptrace: fix compat registes get/set to be endian clean
authorMatthew Leach <Matthew.Leach@arm.com>
Thu, 28 Nov 2013 12:07:22 +0000 (12:07 +0000)
committerVictor Kamensky <victor.kamensky@linaro.org>
Fri, 14 Mar 2014 01:30:39 +0000 (18:30 -0700)
commitba854bd8b9794ed883392dd443de6e7a7a70850a
tree5961e2113a6e8e1c011aafa2f0c0391213f7b169
parent36bada1e73f23f948283f97caf775f3428e56af8
arm64: ptrace: fix compat registes get/set to be endian clean

On a BE system the wrong half of the X registers is retrieved/written
when attempting to get/set the value of aarch32 registers through
ptrace.

Ensure that types are the correct width so that the relevant
casting occurs.

Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 6a2e5e521c333a0b56cb60dc5587e3f90859c5e7)

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
arch/arm64/kernel/ptrace.c