diff options
author | Achin Gupta <achin.gupta@arm.com> | 2014-02-01 08:59:56 +0000 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-02-17 18:51:44 +0000 |
commit | ef7a28c92b3587e2572eab1a30f1e99e854c9d62 (patch) | |
tree | 9591999046cbb14593d82924d369ca04a114396d /common/psci/psci_private.h | |
parent | 7aea908761a6a2923940b8c9491cc1e749142ad1 (diff) |
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
Diffstat (limited to 'common/psci/psci_private.h')
-rw-r--r-- | common/psci/psci_private.h | 5 |
1 files changed, 2 insertions, 3 deletions
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, |