summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-21 01:07:17 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-21 01:07:17 +0000
commit64674889d4f20435c0e40fc7a3a1271701b51dfa (patch)
tree014e5ccc95cc2a14f0e81baa456db29c254a63ff /MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S
parent20b8fc386aef257aad81a5da5533ebd627178c6e (diff)
downloadedk2-platforms-64674889d4f20435c0e40fc7a3a1271701b51dfa.tar.xz
Add "/" after "lock" and another instruction to improve compatibility.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9167 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S')
-rw-r--r--MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S
index 86b338e418..7b7b8e6a41 100644
--- a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S
+++ b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.S
@@ -34,5 +34,5 @@
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange64)
ASM_PFX(InternalSyncCompareExchange64):
mov %rdx, %rax
- lock cmpxchg %r8,(%rcx)
+ lock/cmpxchg %r8,(%rcx)
ret