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
This commit is contained in:
bxing
2006-07-06 07:46:22 +00:00
parent e0f8d087ae
commit a69c49fc11
7 changed files with 76 additions and 67 deletions

View File

@@ -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