X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FSynchronization.c;h=59919a7f03b1ac1955d1075fd30585d060e10c94;hp=225453149d30a476187250b076f0b53ffc19c520;hb=eb9603a0b7c72b33c43bde89ec33d384cd30ce9e;hpb=e22f5aaab77319a0c824d4259d2c9c3e9eae5c47 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)