From: Stefan Agner Date: Sun, 24 Jun 2018 19:09:54 +0000 (+0200) Subject: ARM: PSCI: initialize stack pointer on secondary CPUs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=77fcc2cc901e1886996fda80de464a2372a69124;p=project%2Fbcm63xx%2Fu-boot.git ARM: PSCI: initialize stack pointer on secondary CPUs A proper stack is required to safely use C code in psci_arch_cpu_entry. Fixes: 486daaa618e1 ("arm: psci: add a weak function psci_arch_cpu_entry") Cc: Patrick Delaunay Signed-off-by: Stefan Agner Acked-by: Patrick DELAUNAY Tested-by: Patrick DELAUNAY --- diff --git a/arch/arm/cpu/armv7/psci.S b/arch/arm/cpu/armv7/psci.S index 08b5088675..983cd90442 100644 --- a/arch/arm/cpu/armv7/psci.S +++ b/arch/arm/cpu/armv7/psci.S @@ -331,6 +331,8 @@ ENTRY(psci_cpu_entry) bl _nonsec_init + bl psci_stack_setup + bl psci_arch_cpu_entry bl psci_get_cpu_id @ CPU ID => r0