]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: PSCI: initialize stack pointer on secondary CPUs
authorStefan Agner <stefan.agner@toradex.com>
Sun, 24 Jun 2018 19:09:54 +0000 (21:09 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 08:53:12 +0000 (10:53 +0200)
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 <patrick.delaunay@st.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Patrick DELAUNAY <Patrick.delaunay@st.com>
Tested-by: Patrick DELAUNAY <Patrick.delaunay@st.com>
arch/arm/cpu/armv7/psci.S

index 08b5088675eb00867faf64d475f6be4a41ecd08c..983cd9044295ab3206ff84f83eefd457200f800d 100644 (file)
@@ -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