From eb9603a0b7c72b33c43bde89ec33d384cd30ce9e Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 2 Apr 2007 08:15:58 +0000 Subject: [PATCH 1/1] 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 --- MdePkg/Library/BaseLib/Synchronization.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.2