Add volatile to modify LockValue in ReleaseSpinLock().
[people/mcb30/edk2.git] / 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