]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/control: Implement suspend has panic for ARM
authorJulien Grall <julien.grall@linaro.org>
Tue, 14 Jan 2014 01:41:15 +0000 (01:41 +0000)
committerJulien Grall <julien.grall@citrix.com>
Wed, 21 Oct 2015 11:31:01 +0000 (12:31 +0100)
Suspend is not supported on ARM64 for the moment.

sys/dev/xen/control/control.c

index f2851eea65f94148424b3453908b220fa0833e40..2d92b691e3c4da86855aa02405e9084c0084ca19 100644 (file)
@@ -187,6 +187,7 @@ xctrl_reboot()
        shutdown_nice(0);
 }
 
+#if defined(__amd64__) || defined(__i386__)
 static void
 xctrl_suspend()
 {
@@ -285,6 +286,13 @@ xctrl_suspend()
                printf("System resumed after suspension\n");
 
 }
+#else /* !__amd64__ && !__i386__ */
+static void
+xctrl_suspend()
+{
+       printf("WARNING: xen/control: Suspend not supported!\n");
+}
+#endif /* __amd64__ || __i386__ */
 
 static void
 xctrl_crash()