diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-06-19 07:38:44 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-07-15 16:54:58 +0300 |
commit | 6e6622de166f53597172687b7269b07cf48844df (patch) | |
tree | 8a89c350dff56f3ee34cc7fe721a7864179c8c86 /arch/arm/cpu/armv7/psci.S | |
parent | 45c334e6b22bae75ada8662b88000c4347b1361b (diff) | |
download | u-boot-6e6622de166f53597172687b7269b07cf48844df.tar.xz |
ARM: PSCI: Switch to per-CPU target PC storage in secure data section
Now that we have a secure data section and space to store per-CPU target
PC address, switch to it instead of storing the target PC on the stack.
Also save clobbered r4-r7 registers on the stack and restore them on
return in psci_cpu_on for Tegra, i.MX7, and LS102xA platforms.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/cpu/armv7/psci.S')
-rw-r--r-- | arch/arm/cpu/armv7/psci.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/psci.S b/arch/arm/cpu/armv7/psci.S index bfc4475e36..50dfddb412 100644 --- a/arch/arm/cpu/armv7/psci.S +++ b/arch/arm/cpu/armv7/psci.S @@ -245,8 +245,7 @@ ENTRY(psci_cpu_entry) bl _nonsec_init bl psci_get_cpu_id @ CPU ID => r0 - bl psci_get_cpu_stack_top @ stack top => r0 - ldr r0, [r0] @ target PC at stack top + bl psci_get_target_pc @ target PC => r0 b _do_nonsec_entry ENDPROC(psci_cpu_entry) |