summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-06-24 21:09:54 +0200
committerStefano Babic <sbabic@denx.de>2018-07-23 10:53:12 +0200
commit77fcc2cc901e1886996fda80de464a2372a69124 (patch)
tree04bc55dffb462615969a2edc7c448f514b807624 /arch/arm/cpu
parent353432419de8f90e19f447b4e054ee28c7fa62d0 (diff)
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 <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>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/psci.S2
1 files changed, 2 insertions, 0 deletions
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