mirror of https://github.com/acidanthera/audk.git
OvmfPkg XenBusDxe: Convert Ia32/hypercall.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/hypercall.asm to Ia32/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@16314 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
16a5fed658
commit
8e7ca01de0
|
@ -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):
|
||||
# Save only ebx, ecx is supposed to be a scratch register and needs to be
|
||||
# saved by the caller
|
||||
push %ebx
|
||||
# Copy HypercallAddr to eax
|
||||
mov 8(%esp), %eax
|
||||
# Copy Arg1 to the register expected by Xen
|
||||
mov 12(%esp), %ebx
|
||||
# Copy Arg2 to the register expected by Xen
|
||||
mov 16(%esp), %ecx
|
||||
# Call HypercallAddr
|
||||
call *%eax
|
||||
pop %ebx
|
||||
ret
|
|
@ -1,4 +1,4 @@
|
|||
.code
|
||||
SECTION .text
|
||||
|
||||
; INTN
|
||||
; EFIAPI
|
||||
|
@ -7,7 +7,8 @@
|
|||
; IN OUT INTN Arg1,
|
||||
; IN OUT INTN Arg2
|
||||
; );
|
||||
XenHypercall2 PROC
|
||||
global ASM_PFX(XenHypercall2)
|
||||
ASM_PFX(XenHypercall2):
|
||||
; Save only ebx, ecx is supposed to be a scratch register and needs to be
|
||||
; saved by the caller
|
||||
push ebx
|
||||
|
@ -21,6 +22,4 @@ XenHypercall2 PROC
|
|||
call eax
|
||||
pop ebx
|
||||
ret
|
||||
XenHypercall2 ENDP
|
||||
|
||||
END
|
|
@ -49,8 +49,7 @@
|
|||
Helpers.c
|
||||
|
||||
[Sources.IA32]
|
||||
Ia32/hypercall.S
|
||||
Ia32/hypercall.asm
|
||||
Ia32/hypercall.nasm
|
||||
Ia32/InterlockedCompareExchange16.S
|
||||
Ia32/InterlockedCompareExchange16.asm
|
||||
Ia32/TestAndClearBit.S
|
||||
|
|
Loading…
Reference in New Issue