summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/psci.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-07-05 13:45:07 (GMT)
committerHans de Goede <hdegoede@redhat.com>2016-07-15 13:54:58 (GMT)
commit45c334e6b22bae75ada8662b88000c4347b1361b (patch)
treed350378aac04c05d76993eedf8e5fbdbb530adb1 /arch/arm/include/asm/psci.h
parenta5aa7ff33a942ce8ea38006fd5225a800827bb2c (diff)
downloadu-boot-fsl-qoriq-45c334e6b22bae75ada8662b88000c4347b1361b.tar.xz
ARM: PSCI: Add helper functions to access per-CPU target PC storage
Now that we have a data section, add helper functions to save and fetch per-CPU target PC. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/include/asm/psci.h')
-rw-r--r--arch/arm/include/asm/psci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h
index dab5769..a0da023 100644
--- a/arch/arm/include/asm/psci.h
+++ b/arch/arm/include/asm/psci.h
@@ -54,6 +54,10 @@
#ifndef __ASSEMBLY__
#include <asm/types.h>
+/* These 2 helper functions assume cpu < CONFIG_ARMV7_PSCI_NR_CPUS */
+u32 psci_get_target_pc(int cpu);
+void psci_save_target_pc(int cpu, u32 pc);
+
void psci_cpu_entry(void);
u32 psci_get_cpu_id(void);
u32 psci_get_cpu_stack_top(int cpu);