]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7657/1: head: fix swapper and idmap population with LPAE and big-endian
authorWill Deacon <will.deacon@arm.com>
Thu, 28 Feb 2013 16:46:16 +0000 (17:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:23 +0000 (11:26 -0700)
commit2eef33c7acacbbff8e5090f4a584ff1e36b17e41
tree3a3a4e9e297abae2073b13d05784fbce35b33be5
parentffa812bbea31d029404173ed1184bffaab426a6f
ARM: 7657/1: head: fix swapper and idmap population with LPAE and big-endian

commit d61947a164760ac520cb416768afdf38c33d60e7 upstream.

The LPAE page table format uses 64-bit descriptors, so we need to take
endianness into account when populating the swapper and idmap tables
during early initialisation.

This patch ensures that we store the two words making up each page table
entry in the correct order when running big-endian.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/head.S