Signed-off-by: Sergiy Kibrik <[email protected]>
---
 arch/aarch64/hypercall.S | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 arch/aarch64/hypercall.S

diff --git a/arch/aarch64/hypercall.S b/arch/aarch64/hypercall.S
new file mode 100644
index 0000000..ae900e7
--- /dev/null
+++ b/arch/aarch64/hypercall.S
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2017 Sergiy Kibrik <[email protected]>
+ *
+ * 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)
-- 
2.7.4

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to