mirror of https://github.com/acidanthera/audk.git
14 lines
366 B
ArmAsm
14 lines
366 B
ArmAsm
|
# 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
|