diff options
author | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2012-05-03 12:44:59 +0100 |
---|---|---|
committer | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2012-05-23 12:44:34 +0100 |
commit | 4f48994f7037b257b7f48bd9574db09d119e7cc4 (patch) | |
tree | bdb81eac4d5db10b3013a5dd288bdf81164bd746 /big-little/include | |
parent | 7dd470a6165adbec91a7536c0c4d2e303d45af24 (diff) |
Introduce BOOT_CLUSTER to the switcher.
Although BOOT_CLUSTER is already known to bootwrapper, it was not accessible
from the switcher so far.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Diffstat (limited to 'big-little/include')
-rw-r--r-- | big-little/include/misc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/big-little/include/misc.h b/big-little/include/misc.h index bd15787..e1957aa 100644 --- a/big-little/include/misc.h +++ b/big-little/include/misc.h @@ -383,6 +383,10 @@ #define ID_ISAR4 0x4 #define ID_ISAR5 0x5 +#define IS_BOOT_CLUSTER (read_clusterid() == boot_cluster) +#define IS_HOST_CLUSTER (read_clusterid() == host_cluster) +#define IS_TGT_CLUSTER (!IS_HOST_CLUSTER) + extern void enable_cci_snoops(unsigned); extern void disable_cci_snoops(unsigned); extern void switch_cluster(unsigned); @@ -399,6 +403,7 @@ extern unsigned get_cpuif_mask(unsigned); extern unsigned get_cpu_mask(unsigned); extern unsigned BL_DV_PAGE$$Base; extern unsigned BL_SEC_DV_PAGE$$Base; +extern unsigned boot_cluster; extern unsigned host_cluster; extern unsigned switcher; extern unsigned switchable_cpus_mask; |