Add volatile to modify LockValue in ReleaseSpinLock().
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 24 Nov 2006 02:27:09 +0000 (02:27 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 24 Nov 2006 02:27:09 +0000 (02:27 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2008 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/Synchronization.c

index 0457f3ab89cf42d5da212ed678aebc2df26630d7..18812e242f32949f5d4400402e54bded7c3bf925 100644 (file)
@@ -272,7 +272,7 @@ ReleaseSpinLock (
   IN OUT  SPIN_LOCK                 *SpinLock\r
   )\r
 {\r
-  SPIN_LOCK    LockValue;\r
+  volatile SPIN_LOCK    LockValue;\r
 \r
   ASSERT (SpinLock != NULL);\r
 \r