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