X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseSynchronizationLib%2FX64%2FInterlockedIncrement.c;fp=MdePkg%2FLibrary%2FBaseSynchronizationLib%2FX64%2FInterlockedIncrement.c;h=bbd1384602f146da1ad361ac539890cd7b172671;hb=4cee954ea8063ab2a911e418d8a9e7a179df212b;hp=c0deb60c54fb2e4f5e841950a216947511fb5161;hpb=7375f3f11a70e3c7295ef7005f6723ced176ad0a;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedIncrement.c b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedIncrement.c index c0deb60c54..bbd1384602 100644 --- a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedIncrement.c +++ b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedIncrement.c @@ -1,7 +1,7 @@ /** @file InterLockedIncrement function - Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -38,9 +38,9 @@ long _InterlockedIncrement( UINT32 EFIAPI InternalSyncIncrement ( - IN UINT32 *Value + IN volatile UINT32 *Value ) { - return _InterlockedIncrement (Value); + return _InterlockedIncrement ((long *)(UINTN)(Value)); }