summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-23 09:01:43 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-23 09:01:43 +0000
commit2d57c546e05ca2385a81b2f4280eae2861263759 (patch)
tree3de33d66b8f6193dbde979564a45517c8f3e5ab8 /MdePkg
parent0f2da7f1d325a3709514872a34ad50d950310281 (diff)
downloadedk2-platforms-2d57c546e05ca2385a81b2f4280eae2861263759.tar.xz
Add volatile to modify LockValue in AcquireLockOrFail().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2006 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-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 5033133224..0457f3ab89 100644
--- a/MdePkg/Library/BaseLib/Synchronization.c
+++ b/MdePkg/Library/BaseLib/Synchronization.c
@@ -236,7 +236,7 @@ AcquireSpinLockOrFail (
IN OUT SPIN_LOCK *SpinLock
)
{
- SPIN_LOCK LockValue;
+ volatile SPIN_LOCK LockValue;
ASSERT (SpinLock != NULL);