Add volatile to modify LockValue in AcquireLockOrFail().
authorxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 23 Nov 2006 09:01:43 +0000 (09:01 +0000)
committerxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 23 Nov 2006 09:01:43 +0000 (09:01 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2006 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdePkg/Library/BaseLib/Synchronization.c

index 5033133..0457f3a 100644 (file)
@@ -236,7 +236,7 @@ AcquireSpinLockOrFail (
   IN OUT  SPIN_LOCK                 *SpinLock\r
   )\r
 {\r
-  SPIN_LOCK    LockValue;\r
+  volatile SPIN_LOCK    LockValue;\r
 \r
   ASSERT (SpinLock != NULL);\r
 \r