From: Julien Grall Date: Mon, 30 Mar 2015 14:02:05 +0000 (+0100) Subject: arm64: Call xen_early_init X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d39c48b25bb8b9c621b153d43aad8d0c9bc754d4;p=people%2Fjulieng%2Ffreebsd.git arm64: Call xen_early_init --- diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index 4bb3f674b9f4..5b058786329a 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -85,6 +85,10 @@ __FBSDID("$FreeBSD$"); #include #endif +#ifdef XENHVM +#include +#endif + struct pcpu __pcpu[MAXCPU]; static struct trapframe proc0_tf; @@ -812,6 +816,15 @@ initarm(struct arm64_bootparams *abp) try_load_dtb(kmdp); #endif +#ifdef XENHVM + /* + * We need to know early if FreeBSD is running on top of Xen. + * Therefore we can get an early console working + */ + xen_early_init(); +#endif + + /* Find the address to start allocating from */ lastaddr = MD_FETCH(kmdp, MODINFOMD_KERNEND, vm_offset_t);