xen/control: print warning on call of xctrl_suspend()
Presently suspend/resume and migration aren't supported on Xen/ARM. As such this shouldn't ever occur. This likely applies to future Xen architectures (RISC-V) and xctrl_suspend() needs dependency on intr_machdep.h fixed. Submitted by: Elliott Mitchell <ehem+freebsd@m5p.com> Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D29599
This commit is contained in:
parent
7de88bb4a2
commit
46c46edd18
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user