From: Matthew Leach Date: Fri, 11 Oct 2013 13:52:17 +0000 (+0100) Subject: arm64: big-endian: set correct endianess on kernel entry X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~54^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cf71728931a4073b9e3a4bcbf9dada86bc98370;p=pandora-kernel.git arm64: big-endian: set correct endianess on kernel entry The endianness of memory accesses at EL2 and EL1 are configured by SCTLR_EL2.EE and SCTLR_EL1.EE respectively. When the kernel is booted, the state of SCTLR_EL{2,1}.EE is unknown, and thus the kernel must ensure that they are set before performing any memory accesses. This patch ensures that SCTLR_EL{2,1} are configured appropriately at boot for kernels of either endianness. Acked-by: Will Deacon Signed-off-by: Matthew Leach [catalin.marinas@arm.com: fix SCTLR_EL1.E0E bit setting in head.S] Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed