summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Synchronization.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-29 07:45:24 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-29 07:45:24 +0000
commit46dd23b81ebe5041229608a851ed7af692863f3c (patch)
treef76c73f371030a77638f28b9b33e3ef1beb94363 /MdePkg/Library/BaseLib/Synchronization.c
parentc8dd259d6174c01569f2a6da7243d74d727b2678 (diff)
downloadedk2-platforms-46dd23b81ebe5041229608a851ed7af692863f3c.tar.xz
1.Define SPIN_LOCK as "volatile UINTN" to prevent mutli-processor access harzard.
2.Sync MTFTP4 Protocol GUID with spec. 3.Sync the definition the EFI_IP4_VARIABLE_DATA and EFI_TCP4_VARIABLE_DATA with spec git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2514 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Synchronization.c')
-rw-r--r--MdePkg/Library/BaseLib/Synchronization.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdePkg/Library/BaseLib/Synchronization.c b/MdePkg/Library/BaseLib/Synchronization.c
index e08aa62cf9..225453149d 100644
--- a/MdePkg/Library/BaseLib/Synchronization.c
+++ b/MdePkg/Library/BaseLib/Synchronization.c
@@ -16,8 +16,8 @@
#include "BaseLibInternals.h"
-#define SPIN_LOCK_RELEASED ((SPIN_LOCK)1)
-#define SPIN_LOCK_ACQUIRED ((SPIN_LOCK)2)
+#define SPIN_LOCK_RELEASED ((UINTN) 1)
+#define SPIN_LOCK_ACQUIRED ((UINTN) 2)
/**
Retrieves the architecture specific spin lock alignment requirements for
@@ -151,7 +151,7 @@ AcquireSpinLockOrFail (
IN OUT SPIN_LOCK *SpinLock
)
{
- volatile SPIN_LOCK LockValue;
+ SPIN_LOCK LockValue;
ASSERT (SpinLock != NULL);
@@ -187,7 +187,7 @@ ReleaseSpinLock (
IN OUT SPIN_LOCK *SpinLock
)
{
- volatile SPIN_LOCK LockValue;
+ SPIN_LOCK LockValue;
ASSERT (SpinLock != NULL);