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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Mar 2013 22:54:13 +0000 (22:54 +0000)
commitd61947a164760ac520cb416768afdf38c33d60e7
treecc0fcb95a82816639184dc0c26fe0d1293679307
parent904464b91eca8c665acea033489225af02eeb75a
ARM: 7657/1: head: fix swapper and idmap population with LPAE and big-endian

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.

Cc: <stable@vger.kernel.org>
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>
arch/arm/kernel/head.S