1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
8 ; InterlockedCompareExchange64.Asm
12 ; InterlockedCompareExchange64 function
16 ;------------------------------------------------------------------------------
21 ;------------------------------------------------------------------------------
24 ; InternalSyncCompareExchange64 (
25 ; IN volatile UINT64 *Value,
26 ; IN UINT64 CompareValue,
27 ; IN UINT64 ExchangeValue
29 ;------------------------------------------------------------------------------
30 global ASM_PFX(InternalSyncCompareExchange64)
31 ASM_PFX(InternalSyncCompareExchange64):
33 lock cmpxchg [rcx], r8