aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mini-os/include/x86/x86_64/hypercall-x86_64.h')
-rw-r--r--extras/mini-os/include/x86/x86_64/hypercall-x86_64.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
index b874f039fe..513d74e09f 100644
--- a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
+++ b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
@@ -176,6 +176,14 @@ HYPERVISOR_sched_op(
return _hypercall2(int, sched_op, cmd, arg);
}
+static inline int
+HYPERVISOR_shutdown(
+ unsigned int reason)
+{
+ struct sched_shutdown shutdown = { .reason = reason };
+ return _hypercall2(int, sched_op, SCHEDOP_shutdown, &shutdown);
+}
+
static inline long
HYPERVISOR_set_timer_op(
uint64_t timeout)