mirror of https://github.com/acidanthera/audk.git
OvmfPkg XenBusDxe: Convert X64/InterlockedCompareExchange16.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/InterlockedCompareExchange16.asm to X64/InterlockedCompareExchange16.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@16318 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
60aafa1bde
commit
0ae9d5e88e
|
@ -1,13 +0,0 @@
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# InternalSyncCompareExchange16 (
|
|
||||||
# IN volatile UINT16 *Value,
|
|
||||||
# IN UINT16 CompareValue,
|
|
||||||
# IN UINT16 ExchangeValue
|
|
||||||
# );
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange16)
|
|
||||||
ASM_PFX(InternalSyncCompareExchange16):
|
|
||||||
mov %edx, %eax
|
|
||||||
lock
|
|
||||||
cmpxchgw %r8w, (%rcx)
|
|
||||||
ret
|
|
|
@ -21,7 +21,8 @@
|
||||||
;
|
;
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
.code
|
DEFAULT REL
|
||||||
|
SECTION .text
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; UINT16
|
; UINT16
|
||||||
|
@ -32,10 +33,9 @@
|
||||||
; IN UINT16 ExchangeValue
|
; IN UINT16 ExchangeValue
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
InternalSyncCompareExchange16 PROC
|
global ASM_PFX(InternalSyncCompareExchange16)
|
||||||
|
ASM_PFX(InternalSyncCompareExchange16):
|
||||||
mov eax, edx
|
mov eax, edx
|
||||||
lock cmpxchg [rcx], r8w
|
lock cmpxchg [rcx], r8w
|
||||||
ret
|
ret
|
||||||
InternalSyncCompareExchange16 ENDP
|
|
||||||
|
|
||||||
END
|
|
|
@ -55,8 +55,7 @@
|
||||||
|
|
||||||
[Sources.X64]
|
[Sources.X64]
|
||||||
X64/hypercall.nasm
|
X64/hypercall.nasm
|
||||||
X64/InterlockedCompareExchange16.S
|
X64/InterlockedCompareExchange16.nasm
|
||||||
X64/InterlockedCompareExchange16.asm
|
|
||||||
X64/TestAndClearBit.S
|
X64/TestAndClearBit.S
|
||||||
X64/TestAndClearBit.asm
|
X64/TestAndClearBit.asm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue