summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-09 15:14:23 +0100
committerDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-23 12:44:35 +0100
commitb8e09be264d99461d826c026c96c9bbcb081005c (patch)
treea9404a6d0378abc0506bd2985b6fc039d537a7f2
parentc1c9a4e8602f07cf702a1e06f6ce4b259ff9f541 (diff)
downloadswitcher-b8e09be264d99461d826c026c96c9bbcb081005c.tar.gz
Re-arrange hvc furnction numbers.
Allign all hvc function numbers into the ARM owned HVC function number range (0x9000 0000 - 0x9FFF FFFF). Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
-rw-r--r--big-little/include/misc.h52
1 files changed, 27 insertions, 25 deletions
diff --git a/big-little/include/misc.h b/big-little/include/misc.h
index b57078a..4656d00 100644
--- a/big-little/include/misc.h
+++ b/big-little/include/misc.h
@@ -45,32 +45,34 @@
#define FALSE 0
#define CONTEXT_SAVE 0
#define CONTEXT_RESTORE 1
-#define HVC_SWITCHER_CLUSTER_SWITCH 1
-#define HVC_VIRT_MPIDR_READ 2
+/* Switcher HVCs */
+#define HVC_SWITCHER_CLUSTER_SWITCH 0x90000000
+/* Virtualisor HVCs */
+#define HVC_VIRT_MPIDR_READ 0x90000100
/* PMU HVCs */
-#define HVC_PMU_PMCR_READ 0x90000001
-#define HVC_PMU_PMCR_WRITE 0x90000002
-#define HVC_PMU_PMSELR_READ 0x90000003
-#define HVC_PMU_PMSELR_WRITE 0x90000004
-#define HVC_PMU_PMXEVTYPER_READ 0x90000005
-#define HVC_PMU_PMXEVTYPER_WRITE 0x90000006
-#define HVC_PMU_PMCNTENSET_READ 0x90000007
-#define HVC_PMU_PMCNTENSET_WRITE 0x90000008
-#define HVC_PMU_PMCNTENCLR_READ 0x90000009
-#define HVC_PMU_PMCNTENCLR_WRITE 0x9000000A
-#define HVC_PMU_PMCCNTR_READ 0x9000000B
-#define HVC_PMU_PMCCNTR_WRITE 0x9000000C
-#define HVC_PMU_PMOVSR_READ 0x9000000D
-#define HVC_PMU_PMOVSR_WRITE 0x9000000E
-#define HVC_PMU_PMXEVCNTR_READ 0x9000000F
-#define HVC_PMU_PMXEVCNTR_WRITE 0x90000010
-#define HVC_PMU_PMINTENSET_READ 0x90000011
-#define HVC_PMU_PMINTENSET_WRITE 0x90000012
-#define HVC_PMU_PMINTENCLR_READ 0x90000013
-#define HVC_PMU_PMINTENCLR_WRITE 0x90000014
-#define HVC_PMU_SWITCH 0x90000100
-#define HVC_PMU_GET_COUNTERS_SIZE 0x90000200
-#define HVC_PMU_SYNC_PMU_COUNTERS 0x90000201
+#define HVC_PMU_PMCR_READ 0x90001000
+#define HVC_PMU_PMCR_WRITE 0x90001001
+#define HVC_PMU_PMSELR_READ 0x90001002
+#define HVC_PMU_PMSELR_WRITE 0x90001003
+#define HVC_PMU_PMXEVTYPER_READ 0x90001004
+#define HVC_PMU_PMXEVTYPER_WRITE 0x90001005
+#define HVC_PMU_PMCNTENSET_READ 0x90001006
+#define HVC_PMU_PMCNTENSET_WRITE 0x90001007
+#define HVC_PMU_PMCNTENCLR_READ 0x90001008
+#define HVC_PMU_PMCNTENCLR_WRITE 0x90001009
+#define HVC_PMU_PMCCNTR_READ 0x9000100A
+#define HVC_PMU_PMCCNTR_WRITE 0x9000100B
+#define HVC_PMU_PMOVSR_READ 0x9000100C
+#define HVC_PMU_PMOVSR_WRITE 0x9000100D
+#define HVC_PMU_PMXEVCNTR_READ 0x9000100E
+#define HVC_PMU_PMXEVCNTR_WRITE 0x9000100F
+#define HVC_PMU_PMINTENSET_READ 0x90001010
+#define HVC_PMU_PMINTENSET_WRITE 0x90001011
+#define HVC_PMU_PMINTENCLR_READ 0x90001012
+#define HVC_PMU_PMINTENCLR_WRITE 0x90001013
+#define HVC_PMU_SWITCH 0x90001100
+#define HVC_PMU_GET_COUNTERS_SIZE 0x90001200
+#define HVC_PMU_SYNC_PMU_COUNTERS 0x90001201
/* PMU States. */
#define PMU_STATE0 0
#define PMU_STATE1 1