arm64: kernel: add code to set cpu boot mode to secondary_entry shim
authorLorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>
Mon, 18 Nov 2013 18:56:42 +0000 (18:56 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 6 Dec 2013 17:21:51 +0000 (17:21 +0000)
commit85cc00eaa81dfa0f5bf8076c48f3ee2c2c4a77ba
tree4088df5c63ea94350b9d929055a67d5ad935b331
parent62aceb8ff4b3f442575eb7e23629da36020dca77
arm64: kernel: add code to set cpu boot mode to secondary_entry shim

The refactoring of el2_setup split code setting up EL2 and detecting the
CPU boot mode in separate chunks. This allows the code that sets up EL2 to
run in an endian independent way - ie before the endianess is set up in
the respective sctlr registers.

This patch brings secondary_entry up-to-date so that CPUs entering the
kernel through this code path set-up EL2 and the cpu boot mode properly.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Mark Rutland <mark.rutand@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/head.S