summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Synchronization.c
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-24 02:27:09 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-24 02:27:09 +0000
commit9710b9a67c7d949b339b5540b0eaa735d56e019b (patch)
tree5ca52d5254b7295284f43a9a8a2992854cf0c03b /MdePkg/Library/BaseLib/Synchronization.c
parent733f4094eece02888d5bc8413a9367ea58137133 (diff)
downloadedk2-platforms-9710b9a67c7d949b339b5540b0eaa735d56e019b.tar.xz
Add volatile to modify LockValue in ReleaseSpinLock().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2008 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Synchronization.c')
-rw-r--r--MdePkg/Library/BaseLib/Synchronization.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/Synchronization.c b/MdePkg/Library/BaseLib/Synchronization.c
index 0457f3ab89..18812e242f 100644
--- a/MdePkg/Library/BaseLib/Synchronization.c
+++ b/MdePkg/Library/BaseLib/Synchronization.c
@@ -272,7 +272,7 @@ ReleaseSpinLock (
IN OUT SPIN_LOCK *SpinLock
)
{
- SPIN_LOCK LockValue;
+ volatile SPIN_LOCK LockValue;
ASSERT (SpinLock != NULL);