summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-02 08:15:58 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-02 08:15:58 +0000
commiteb9603a0b7c72b33c43bde89ec33d384cd30ce9e (patch)
treec85e3a9d5ffe054a1c2e087e3cd5bfd58cae6b51 /MdePkg
parente22f5aaab77319a0c824d4259d2c9c3e9eae5c47 (diff)
downloadedk2-platforms-eb9603a0b7c72b33c43bde89ec33d384cd30ce9e.tar.xz
Add comments on the definition of SPIN_LOCK_RELEASED & SPIN_LOCK_ACQUIRED
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2522 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BaseLib/Synchronization.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseLib/Synchronization.c b/MdePkg/Library/BaseLib/Synchronization.c
index 225453149d..59919a7f03 100644
--- a/MdePkg/Library/BaseLib/Synchronization.c
+++ b/MdePkg/Library/BaseLib/Synchronization.c
@@ -16,6 +16,10 @@
#include "BaseLibInternals.h"
+//
+// SPIN_LOCK_RELEASED & SPIN_LOCK_ACQUIRED should belong to type "SPIN_LOCK".
+// Here we use type-case "UINTN" to avoid "volatile" modifier on const integers.
+//
#define SPIN_LOCK_RELEASED ((UINTN) 1)
#define SPIN_LOCK_ACQUIRED ((UINTN) 2)