mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xen: arm: support building a 64-bit dom0 domain
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
1 parent
cb5e832146
commit
bcac10f827
3 files changed
+9
-5
No files matched your search
@@ -589,9 +589,7 @@ int construct_dom0(struct domain *d)
|
||||
|
||||
memset(regs, 0, sizeof(*regs));
|
||||
|
||||
regs->pc = (uint32_t)kinfo.entry;
|
||||
|
||||
regs->cpsr = PSR_GUEST_INIT;
|
||||
regs->pc = (register_t)kinfo.entry;
|
||||
|
||||
#ifdef CONFIG_ARM_64
|
||||
d->arch.type = kinfo.type;
|
||||
@@ -599,6 +597,11 @@ int construct_dom0(struct domain *d)
|
||||
|
||||
if ( is_pv32_domain(d) )
|
||||
{
|
||||
regs->cpsr = PSR_GUEST_INIT|PSR_MODE_SVC;
|
||||
|
||||
/* Pretend to be a Cortex A15 */
|
||||
d->arch.vpidr = 0x410fc0f0;
|
||||
|
||||
/* FROM LINUX head.S
|
||||
*
|
||||
* Kernel startup entry point.
|
||||
@@ -616,6 +619,7 @@ int construct_dom0(struct domain *d)
|
||||
#ifdef CONFIG_ARM_64
|
||||
else
|
||||
{
|
||||
regs->cpsr = PSR_GUEST_INIT|PSR_MODE_EL1h;
|
||||
/* From linux/Documentation/arm64/booting.txt */
|
||||
regs->x0 = kinfo.dtb_paddr;
|
||||
regs->x1 = 0; /* Reserved for future use */
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
#define SCTLR_BASE 0x00c50078
|
||||
#define HSCTLR_BASE 0x30c51878
|
||||
|
||||
#define PSR_GUEST_INIT (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK)
|
||||
|
||||
/* HCR Hyp Configuration Register */
|
||||
#define HCR_TGE (1<<27)
|
||||
#define HCR_TVM (1<<26)
|
||||
|
||||
@@ -237,8 +237,6 @@ typedef uint64_t xen_callback_t;
|
||||
#define PSR_IT_MASK (0x0600fc00) /* Thumb If-Then Mask */
|
||||
#define PSR_JAZELLE (1<<24) /* Jazelle Mode */
|
||||
|
||||
#define PSR_GUEST_INIT (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK|PSR_MODE_SVC)
|
||||
|
||||
#endif /* __XEN_PUBLIC_ARCH_ARM_H__ */
|
||||
|
||||
/*
|
||||
|
||||