aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-arm
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-07-30 00:18:28 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-07-30 09:36:18 +0100
commit6072b7c808043b6886c33f896e06fc32ee28346e (patch)
tree1398cceaa2936823ca821695c1bc03587d05a89a /xen/include/asm-arm
parenta521eb1fb9610fb897bb1283c9b495dc4e577c76 (diff)
downloadxen-6072b7c808043b6886c33f896e06fc32ee28346e.tar.gz
xen-6072b7c808043b6886c33f896e06fc32ee28346e.tar.bz2
xen-6072b7c808043b6886c33f896e06fc32ee28346e.zip
xen/arm: Fix guest secondaries CPU boot after bcac10f
The commit bcac10f "xen: arm: support building a 64-bit dom0 domain" breaks secondary cpus boot for all the guest. Linux requires CPUs to boot on SVC mode. Divide PSR_GUEST_INIT in 2 distinct defines: one for 32 bit, the other for 64 bits guests. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-arm')
-rw-r--r--xen/include/asm-arm/processor.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h
index 948bf2de9e..06b0b25572 100644
--- a/xen/include/asm-arm/processor.h
+++ b/xen/include/asm-arm/processor.h
@@ -47,7 +47,11 @@
#define SCTLR_BASE 0x00c50078
#define HSCTLR_BASE 0x30c51878
-#define PSR_GUEST_INIT (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK)
+#define PSR_GUEST32_INIT (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK|PSR_MODE_SVC)
+
+#ifdef CONFIG_ARM_64
+#define PSR_GUEST64_INIT (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK|PSR_MODE_EL1h)
+#endif
/* HCR Hyp Configuration Register */
#define HCR_RW (1<<31) /* Register Width, ARM64 only */