Add volatile to modify LockValue in ReleaseSpinLock().
authorxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 24 Nov 2006 02:27:09 +0000 (02:27 +0000)
committerxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 24 Nov 2006 02:27:09 +0000 (02:27 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2008 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdePkg/Library/BaseLib/Synchronization.c

index 0457f3a..18812e2 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