mirror of https://github.com/acidanthera/audk.git
OvmfPkg XenBusDxe: Convert X64/hypercall.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/hypercall.asm to X64/hypercall.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16317 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
31c0aa2fd0
commit
60aafa1bde
|
@ -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
|
|
|
@ -1,4 +1,5 @@
|
||||||
.code
|
DEFAULT REL
|
||||||
|
SECTION .text
|
||||||
|
|
||||||
; INTN
|
; INTN
|
||||||
; EFIAPI
|
; EFIAPI
|
||||||
|
@ -7,7 +8,8 @@
|
||||||
; IN OUT INTN Arg1,
|
; IN OUT INTN Arg1,
|
||||||
; IN OUT INTN Arg2
|
; IN OUT INTN Arg2
|
||||||
; );
|
; );
|
||||||
XenHypercall2 PROC
|
global ASM_PFX(XenHypercall2)
|
||||||
|
ASM_PFX(XenHypercall2):
|
||||||
push rdi
|
push rdi
|
||||||
push rsi
|
push rsi
|
||||||
; Copy HypercallAddr to rax
|
; Copy HypercallAddr to rax
|
||||||
|
@ -21,6 +23,4 @@ XenHypercall2 PROC
|
||||||
pop rsi
|
pop rsi
|
||||||
pop rdi
|
pop rdi
|
||||||
ret
|
ret
|
||||||
XenHypercall2 ENDP
|
|
||||||
|
|
||||||
END
|
|
|
@ -54,8 +54,7 @@
|
||||||
Ia32/TestAndClearBit.nasm
|
Ia32/TestAndClearBit.nasm
|
||||||
|
|
||||||
[Sources.X64]
|
[Sources.X64]
|
||||||
X64/hypercall.S
|
X64/hypercall.nasm
|
||||||
X64/hypercall.asm
|
|
||||||
X64/InterlockedCompareExchange16.S
|
X64/InterlockedCompareExchange16.S
|
||||||
X64/InterlockedCompareExchange16.asm
|
X64/InterlockedCompareExchange16.asm
|
||||||
X64/TestAndClearBit.S
|
X64/TestAndClearBit.S
|
||||||
|
|
Loading…
Reference in New Issue