summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ipf/Synchronization.c
diff options
context:
space:
mode:
authorbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-06 07:46:22 +0000
committerbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-06 07:46:22 +0000
commita69c49fc119ae22e62acd00da011fb9e2bfa433f (patch)
tree1d499e6a13a10472d235f18be136024ad442f5a4 /MdePkg/Library/BaseLib/Ipf/Synchronization.c
parente0f8d087ae422c613267650487686581b1081fc8 (diff)
downloadedk2-platforms-a69c49fc119ae22e62acd00da011fb9e2bfa433f.tar.xz
1. Simplified PalCallStatic.s's by removing unnecessary condition testings.
2. Fixed a logical error in Synchronization.c which caused InterlockedIncrement() and InterlockedDecrement() to hang. 3. Replaced the pseudo-implementation of GetInterruptState() with a real version. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@793 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ipf/Synchronization.c')
-rw-r--r--MdePkg/Library/BaseLib/Ipf/Synchronization.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/Ipf/Synchronization.c b/MdePkg/Library/BaseLib/Ipf/Synchronization.c
index 9eb8799e30..f09dbd5c00 100644
--- a/MdePkg/Library/BaseLib/Ipf/Synchronization.c
+++ b/MdePkg/Library/BaseLib/Ipf/Synchronization.c
@@ -32,7 +32,7 @@ InternalSyncIncrement (
do {
OriginalValue = *Value;
- } while (OriginalValue == InternalSyncCompareExchange32 (
+ } while (OriginalValue != InternalSyncCompareExchange32 (
Value,
OriginalValue,
OriginalValue + 1
@@ -50,7 +50,7 @@ InternalSyncDecrement (
do {
OriginalValue = *Value;
- } while (OriginalValue == InternalSyncCompareExchange32 (
+ } while (OriginalValue != InternalSyncCompareExchange32 (
Value,
OriginalValue,
OriginalValue - 1