diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-04-02 08:15:58 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-04-02 08:15:58 +0000 |
commit | eb9603a0b7c72b33c43bde89ec33d384cd30ce9e (patch) | |
tree | c85e3a9d5ffe054a1c2e087e3cd5bfd58cae6b51 /MdePkg | |
parent | e22f5aaab77319a0c824d4259d2c9c3e9eae5c47 (diff) | |
download | edk2-eb9603a0b7c72b33c43bde89ec33d384cd30ce9e.tar.gz edk2-eb9603a0b7c72b33c43bde89ec33d384cd30ce9e.tar.bz2 edk2-eb9603a0b7c72b33c43bde89ec33d384cd30ce9e.zip |
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.c | 4 |
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)
|