summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe/X64/hypercall.S
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/XenBusDxe/X64/hypercall.S')
-rw-r--r--OvmfPkg/XenBusDxe/X64/hypercall.S22
1 files changed, 0 insertions, 22 deletions
diff --git a/OvmfPkg/XenBusDxe/X64/hypercall.S b/OvmfPkg/XenBusDxe/X64/hypercall.S
deleted file mode 100644
index 83cf466953..0000000000
--- a/OvmfPkg/XenBusDxe/X64/hypercall.S
+++ /dev/null
@@ -1,22 +0,0 @@
-# INTN
-# EFIAPI
-# XenHypercall2 (
-# IN VOID *HypercallAddr,
-# IN OUT INTN Arg1,
-# IN OUT INTN Arg2
-# );
-ASM_GLOBAL ASM_PFX(XenHypercall2)
-ASM_PFX(XenHypercall2):
- push %rdi
- push %rsi
- # Copy HypercallAddr to rax
- movq %rcx, %rax
- # Copy Arg1 to the register expected by Xen
- movq %rdx, %rdi
- # Copy Arg2 to the register expected by Xen
- movq %r8, %rsi
- # Call HypercallAddr
- call *%rax
- pop %rsi
- pop %rdi
- ret