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