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 ;------------------------------------------------------------------------------
20 ;------------------------------------------------------------------------------
23 ; InternalSyncCompareExchange32 (
24 ; IN volatile UINT32 *Value,
25 ; IN UINT32 CompareValue,
26 ; IN UINT32 ExchangeValue
28 ;------------------------------------------------------------------------------
29 global ASM_PFX(InternalSyncCompareExchange32)
30 ASM_PFX(InternalSyncCompareExchange32):
34 lock cmpxchg [ecx], edx