diff options
| author | Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com> | 2013-11-18 13:56:42 -0500 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-12-06 12:21:51 -0500 |
| commit | 85cc00eaa81dfa0f5bf8076c48f3ee2c2c4a77ba (patch) | |
| tree | 4088df5c63ea94350b9d929055a67d5ad935b331 | |
| parent | 62aceb8ff4b3f442575eb7e23629da36020dca77 (diff) | |
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>
| -rw-r--r-- | arch/arm64/kernel/head.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 7009387348b7..c68cca5c3523 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S | |||
| @@ -282,8 +282,9 @@ ENDPROC(secondary_holding_pen) | |||
| 282 | * be used where CPUs are brought online dynamically by the kernel. | 282 | * be used where CPUs are brought online dynamically by the kernel. |
| 283 | */ | 283 | */ |
| 284 | ENTRY(secondary_entry) | 284 | ENTRY(secondary_entry) |
| 285 | bl __calc_phys_offset // x2=phys offset | ||
| 286 | bl el2_setup // Drop to EL1 | 285 | bl el2_setup // Drop to EL1 |
| 286 | bl __calc_phys_offset // x24=PHYS_OFFSET, x28=PHYS_OFFSET-PAGE_OFFSET | ||
| 287 | bl set_cpu_boot_mode_flag | ||
| 287 | b secondary_startup | 288 | b secondary_startup |
| 288 | ENDPROC(secondary_entry) | 289 | ENDPROC(secondary_entry) |
| 289 | 290 | ||
