aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xen/control
diff options
context:
space:
mode:
authorJulien Grall <julien@xen.org>2014-01-14 01:41:15 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2021-07-28 15:27:05 +0000
commit46c46edd18894e75a51b004f1abc1894c78864fe (patch)
tree0ca192b4b423c88b0a34b250baf0268a13fbce71 /sys/dev/xen/control
parent7de88bb4a2e872f72b6d443547c50178799b8366 (diff)
Diffstat (limited to 'sys/dev/xen/control')
-rw-r--r--sys/dev/xen/control/control.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c
index f72193edceea..234ebdf530b0 100644
--- a/sys/dev/xen/control/control.c
+++ b/sys/dev/xen/control/control.c
@@ -130,9 +130,9 @@ __FBSDID("$FreeBSD$");
#include <geom/geom.h>
#include <machine/_inttypes.h>
+#if defined(__amd64__) || defined(__i386__)
#include <machine/intr_machdep.h>
-#if defined(__amd64__) || defined(__i386__)
#include <x86/apicvar.h>
#endif
@@ -196,6 +196,13 @@ xctrl_reboot()
shutdown_nice(0);
}
+#if !defined(__amd64__) && !defined(__i386__)
+static void
+xctrl_suspend()
+{
+ printf("WARNING: xen/control: Suspend not supported!\n");
+}
+#else /* __amd64__ || __i386__ */
static void
xctrl_suspend()
{
@@ -332,6 +339,7 @@ xctrl_suspend()
printf("System resumed after suspension\n");
}
+#endif /* __amd64__ || __i386__ */
static void
xctrl_crash()