TianoCore EDK2 master
Loading...
Searching...
No Matches
InterlockedCompareExchange64.c
Go to the documentation of this file.
1
25UINT64
26EFIAPI
28 IN volatile UINT64 *Value,
29 IN UINT64 CompareValue,
30 IN UINT64 ExchangeValue
31 )
32{
33 _asm {
34 mov esi, Value
35 mov eax, dword ptr [CompareValue + 0]
36 mov edx, dword ptr [CompareValue + 4]
37 mov ebx, dword ptr [ExchangeValue + 0]
38 mov ecx, dword ptr [ExchangeValue + 4]
39 lock cmpxchg8b qword ptr [esi]
40 }
41}
UINT64 EFIAPI InternalSyncCompareExchange64(IN volatile UINT64 *Value, IN UINT64 CompareValue, IN UINT64 ExchangeValue)
#define IN
Definition: Base.h:279