From: Matthew Leach Date: Fri, 11 Oct 2013 13:52:16 +0000 (+0100) Subject: arm64: head: create a new function for setting the boot_cpu_mode flag X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~54^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=828e9834e9a5b7e61046aa3c5f603a4fecba2fb4;p=pandora-kernel.git arm64: head: create a new function for setting the boot_cpu_mode flag Currently, the code for setting the __cpu_boot_mode flag is munged in with el2_setup. This makes things difficult on a BE bringup as a memory access has to have occurred before el2_setup which is the place that we'd like to set the endianess on the current EL. Create a new function for setting __cpu_boot_mode and have el2_setup return the mode the CPU. Also define a new constant in virt.h, BOOT_CPU_MODE_EL1, for readability. Acked-by: Marc Zyngier Acked-by: Will Deacon Signed-off-by: Matthew Leach Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed