linux/arch/arm64/include
Robin Murphy a95468b014 arm64: Fix compat register mappings
commit 5accd17d0e upstream.

For reasons not entirely apparent, but now enshrined in history, the
architectural mapping of AArch32 banked registers to AArch64 registers
actually orders SP_<mode> and LR_<mode> backwards compared to the
intuitive r13/r14 order, for all modes except FIQ.

Fix the compat_<reg>_<mode> macros accordingly, in the hope of avoiding
subtle bugs with KVM and AArch32 guests.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-12-09 14:03:22 -05:00
..
asm arm64: Fix compat register mappings 2015-12-09 14:03:22 -05:00
uapi/asm KVM: arm/arm64: check IRQ number on userland injection 2015-04-22 15:42:24 +01:00