From ef7a28c92b3587e2572eab1a30f1e99e854c9d62 Mon Sep 17 00:00:00 2001 From: Achin Gupta Date: Sat, 1 Feb 2014 08:59:56 +0000 Subject: psci: Use context library for preserving EL3 state This patch uses the context library to save and restore EL3 state on the 'cpu_context' data structures allocated by PSCI for managing non-secure state context on each cpu. Change-Id: I19c1f26578204a7cd9e0a6c582ced0d97ee4cf80 --- common/psci/psci_private.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common/psci/psci_private.h') diff --git a/common/psci/psci_private.h b/common/psci/psci_private.h index 9b5c552e..de9c2917 100644 --- a/common/psci/psci_private.h +++ b/common/psci/psci_private.h @@ -77,10 +77,9 @@ typedef struct { /* Align the suspend level to allow per-cpu lockless access */ int suspend_level __attribute__((__aligned__(CACHE_WRITEBACK_GRANULE))); - sysregs_context sec_sysregs; } suspend_context; -typedef aff_map_node *mpidr_aff_map_nodes[MPIDR_MAX_AFFLVL]; +typedef aff_map_node (*mpidr_aff_map_nodes[MPIDR_MAX_AFFLVL]); typedef unsigned int (*afflvl_power_on_finisher)(unsigned long, aff_map_node *); @@ -105,7 +104,7 @@ extern unsigned short psci_get_state(aff_map_node *node); extern unsigned short psci_get_phys_state(aff_map_node *node); extern void psci_set_state(aff_map_node *node, unsigned short state); extern void psci_get_ns_entry_info(unsigned int index); -extern unsigned long mpidr_set_aff_inst(unsigned long,unsigned char, int); +extern unsigned long mpidr_set_aff_inst(unsigned long, unsigned char, int); extern int psci_validate_mpidr(unsigned long, int); extern int get_power_on_target_afflvl(unsigned long mpidr); extern void psci_afflvl_power_on_finish(unsigned long, -- cgit v1.2.3