mirror of https://github.com/acidanthera/audk.git
OvmfPkg XenBusDxe: Convert Ia32/TestAndClearBit.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/TestAndClearBit.asm to Ia32/TestAndClearBit.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@16316 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
09c3757bc4
commit
31c0aa2fd0
|
@ -1,13 +0,0 @@
|
||||||
# INT32
|
|
||||||
# EFIAPI
|
|
||||||
# TestAndClearBit (
|
|
||||||
# IN INT32 Bit,
|
|
||||||
# IN volatile VOID* Address
|
|
||||||
# );
|
|
||||||
ASM_GLOBAL ASM_PFX(TestAndClearBit)
|
|
||||||
ASM_PFX(TestAndClearBit):
|
|
||||||
mov 4(%esp), %ecx
|
|
||||||
mov 8(%esp), %edx
|
|
||||||
lock btrl %ecx, (%edx)
|
|
||||||
sbbl %eax, %eax
|
|
||||||
ret
|
|
|
@ -1,4 +1,4 @@
|
||||||
.code
|
SECTION .text
|
||||||
|
|
||||||
; INT32
|
; INT32
|
||||||
; EFIAPI
|
; EFIAPI
|
||||||
|
@ -6,12 +6,11 @@
|
||||||
; IN INT32 Bit,
|
; IN INT32 Bit,
|
||||||
; IN volatile VOID* Address
|
; IN volatile VOID* Address
|
||||||
; );
|
; );
|
||||||
TestAndClearBit PROC
|
global ASM_PFX(TestAndClearBit)
|
||||||
|
ASM_PFX(TestAndClearBit):
|
||||||
mov ecx, [esp + 4]
|
mov ecx, [esp + 4]
|
||||||
mov edx, [esp + 8]
|
mov edx, [esp + 8]
|
||||||
lock btr [edx], ecx
|
lock btr [edx], ecx
|
||||||
sbb eax, eax
|
sbb eax, eax
|
||||||
ret
|
ret
|
||||||
TestAndClearBit ENDP
|
|
||||||
|
|
||||||
END
|
|
|
@ -51,8 +51,7 @@
|
||||||
[Sources.IA32]
|
[Sources.IA32]
|
||||||
Ia32/hypercall.nasm
|
Ia32/hypercall.nasm
|
||||||
Ia32/InterlockedCompareExchange16.nasm
|
Ia32/InterlockedCompareExchange16.nasm
|
||||||
Ia32/TestAndClearBit.S
|
Ia32/TestAndClearBit.nasm
|
||||||
Ia32/TestAndClearBit.asm
|
|
||||||
|
|
||||||
[Sources.X64]
|
[Sources.X64]
|
||||||
X64/hypercall.S
|
X64/hypercall.S
|
||||||
|
|
Loading…
Reference in New Issue