summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/BaseLib.msa
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-03 06:25:25 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-03 06:25:25 +0000
commitef7baf58d031adb9aad451f761a1898190f482f5 (patch)
tree9c0dc64301ac32c4174fa27005d0f10499236396 /MdePkg/Library/BaseLib/BaseLib.msa
parent9471ecb798ad67b8e53e6b2bcaf56ef5d83162e6 (diff)
downloadedk2-platforms-ef7baf58d031adb9aad451f761a1898190f482f5.tar.xz
Add the ReadWriteBarrier in the Acquire/ReleaseSpin to block the unexpected optimization of compiler.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2524 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/BaseLib.msa')
-rw-r--r--MdePkg/Library/BaseLib/BaseLib.msa5
1 files changed, 3 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/BaseLib.msa b/MdePkg/Library/BaseLib/BaseLib.msa
index 99ba05a870..7e1690fefa 100644
--- a/MdePkg/Library/BaseLib/BaseLib.msa
+++ b/MdePkg/Library/BaseLib/BaseLib.msa
@@ -42,7 +42,6 @@
<Filename>BaseLibInternals.h</Filename>
<Filename>String.c</Filename>
<Filename>LinkedList.c</Filename>
- <Filename>Synchronization.c</Filename>
<Filename>Cpu.c</Filename>
<Filename>CpuDeadLoop.c</Filename>
<Filename>BitField.c</Filename>
@@ -73,7 +72,9 @@
<Filename>SwapBytes32.c</Filename>
<Filename>SwapBytes64.c</Filename>
<Filename>SwitchStack.c</Filename>
- <Filename>CheckSum.c</Filename>
+ <Filename>CheckSum.c</Filename>
+ <Filename ToolChainFamily="GCC">SynchronizationGcc.c</Filename>
+ <Filename ToolChainFamily="MSFT">SynchronizationMsc.c</Filename>
<Filename SupArchList="IA32">x86DisablePaging32.c</Filename>
<Filename SupArchList="IA32">x86DisablePaging64.c</Filename>
<Filename SupArchList="IA32">x86EnablePaging32.c</Filename>