]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Nov 2013 18:01:28 +0000 (18:01 +0000)
commit4fbdc964bf6faffb21a246a2d9a54bdcaf6ad02f
tree302469b5e34be7776fd899945f16d81eac2beb62
parentfdac7c96844dc6c13bd2c204334d46fdb10eabbb
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>
arch/arm64/kernel/ptrace.c