X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkCompatibilityPkg%2FFoundation%2FLibrary%2FEdkIIGlueLib%2FLibrary%2FBaseLib%2FX64%2FInterlockedCompareExchange64.S;h=7064d3ac649abfd7881acedcb3a548d09f537eb7;hb=2c7e5c2febd407ed1849c06da50734dd6f751956;hp=95f9d0501b6e2283ecf9aa01bec9c4c4e2c13e54;hpb=34e4a9a65101f70a2a51f04655ab1006de96865a;p=mirror_edk2.git diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedCompareExchange64.S b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedCompareExchange64.S index 95f9d0501b..7064d3ac64 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedCompareExchange64.S +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/InterlockedCompareExchange64.S @@ -1,7 +1,7 @@ #------------------------------------------------------------------------------ # -# Copyright (c) 2006, Intel Corporation -# All rights reserved. This program and the accompanying materials +# Copyright (c) 2006 - 2009, 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 # http://opensource.org/licenses/bsd-license.php @@ -21,7 +21,7 @@ # #------------------------------------------------------------------------------ - +#include #------------------------------------------------------------------------------ # UINT64 # EFIAPI @@ -31,8 +31,7 @@ # IN UINT64 ExchangeValue # ); #------------------------------------------------------------------------------ -.global ASM_PFX(InternalSyncCompareExchange64) -.align 16 +.globl ASM_PFX(InternalSyncCompareExchange64) ASM_PFX(InternalSyncCompareExchange64): mov %rsi, %rax lock cmpxchg %rdx,(%rdi)