]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange32.S
Add "/" after "lock" and another instruction to improve compatibility.
[mirror_edk2.git] / MdePkg / Library / BaseSynchronizationLib / X64 / InterlockedCompareExchange32.S
index 90b1af11d73325cde9c78aab21328aeeb1460b7b..ce2af3449390f852da894e5df375895897fd3b1e 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
@@ -33,5 +33,5 @@
 ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange32)\r
 ASM_PFX(InternalSyncCompareExchange32):\r
     mov     %edx, %eax\r
-    lock    cmpxchg %r8d, (%rcx)\r
+    lock/cmpxchg %r8d, (%rcx)\r
     ret\r