mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
OvmfPkg XenBusDxe: Convert Ia32/InterlockedCompareExchange16.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/InterlockedCompareExchange16.asm to Ia32/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@16315 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8e7ca01de0
commit
09c3757bc4
@ -1,15 +0,0 @@
|
|||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# InternalSyncCompareExchange16 (
|
|
||||||
# IN volatile UINT16 *Value,
|
|
||||||
# IN UINT16 CompareValue,
|
|
||||||
# IN UINT16 ExchangeValue
|
|
||||||
# );
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange16)
|
|
||||||
ASM_PFX(InternalSyncCompareExchange16):
|
|
||||||
mov 4(%esp), %ecx
|
|
||||||
mov 8(%esp), %eax
|
|
||||||
mov 12(%esp), %edx
|
|
||||||
lock
|
|
||||||
cmpxchgw %dx, (%ecx)
|
|
||||||
ret
|
|
@ -21,9 +21,7 @@
|
|||||||
;
|
;
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
.486
|
SECTION .text
|
||||||
.model flat,C
|
|
||||||
.code
|
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; UINT32
|
; UINT32
|
||||||
@ -34,12 +32,11 @@
|
|||||||
; IN UINT16 ExchangeValue
|
; IN UINT16 ExchangeValue
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
InternalSyncCompareExchange16 PROC
|
global ASM_PFX(InternalSyncCompareExchange16)
|
||||||
|
ASM_PFX(InternalSyncCompareExchange16):
|
||||||
mov ecx, [esp + 4]
|
mov ecx, [esp + 4]
|
||||||
mov eax, [esp + 8]
|
mov eax, [esp + 8]
|
||||||
mov edx, [esp + 12]
|
mov edx, [esp + 12]
|
||||||
lock cmpxchg [ecx], dx
|
lock cmpxchg [ecx], dx
|
||||||
ret
|
ret
|
||||||
InternalSyncCompareExchange16 ENDP
|
|
||||||
|
|
||||||
END
|
|
@ -50,8 +50,7 @@
|
|||||||
|
|
||||||
[Sources.IA32]
|
[Sources.IA32]
|
||||||
Ia32/hypercall.nasm
|
Ia32/hypercall.nasm
|
||||||
Ia32/InterlockedCompareExchange16.S
|
Ia32/InterlockedCompareExchange16.nasm
|
||||||
Ia32/InterlockedCompareExchange16.asm
|
|
||||||
Ia32/TestAndClearBit.S
|
Ia32/TestAndClearBit.S
|
||||||
Ia32/TestAndClearBit.asm
|
Ia32/TestAndClearBit.asm
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user