From: Sergiy Kibrik <sergiy.kib...@globallogic.com>
Committer: Sergiy Kibrik <sergiy.kib...@globallogic.com>
Branch: master

aarch64: add Xen hypercalls

Signed-off-by: Sergiy Kibrik <sergiy.kib...@globallogic.com>
Reviewed-by: Nadav Har'El <n...@scylladb.com>

---
diff --git a/arch/aarch64/hypercall.S b/arch/aarch64/hypercall.S
--- a/arch/aarch64/hypercall.S
+++ b/arch/aarch64/hypercall.S
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2017 Sergiy Kibrik <sergiy.kib...@globallogic.com>
+ *
+ * This work is open source software, licensed under the terms of the
+ * BSD license as described in the LICENSE file in the top-level directory.
+ */
+
+#include <xen/interface/xen.h>
+
+#define _hypercall(call)                       \
+       .align 16;                              \
+       .globl HYPERVISOR_##call;               \
+       .type HYPERVISOR_##call , "function"; \
+       HYPERVISOR_##call:                      \
+               mov x16, #__HYPERVISOR_##call;  \
+               hvc 0xEA1;                      \
+               ret;
+
+.text
+_hypercall(sched_op)
+_hypercall(memory_op)
+_hypercall(multicall)
+_hypercall(event_channel_op)
+_hypercall(xen_version)
+_hypercall(console_io)
+_hypercall(physdev_op)
+_hypercall(grant_table_op)
+_hypercall(vcpu_op)
+_hypercall(platform_op_raw)
+_hypercall(hvm_op)

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to