Code Scrub for Dxe Core.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5560 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2008-07-24 02:54:45 +00:00
parent 11c11e4ecf
commit 022c6d45ef
38 changed files with 2499 additions and 2504 deletions

View File

@@ -42,7 +42,7 @@ CoreSetInterruptState (
/**
Return the highest set bit.
@param Number The value to check
@param Number The value to check
@return Bit position of the highest set bit
@@ -53,7 +53,7 @@ CoreHighestSetBit (
)
{
UINTN Msb;
Msb = 31;
while ((Msb > 0) && ((Number & (UINTN)(1 << Msb)) == 0)) {
Msb--;
@@ -69,7 +69,7 @@ CoreHighestSetBit (
Raise the task priority level to the new level.
High level is implemented by disabling processor interrupts.
@param NewTpl New task priority level
@param NewTpl New task priority level
@return The previous task priority level
@@ -129,7 +129,7 @@ CoreRestoreTpl (
//
if (OldTpl >= TPL_HIGH_LEVEL && NewTpl < TPL_HIGH_LEVEL) {
gEfiCurrentTpl = TPL_HIGH_LEVEL;
gEfiCurrentTpl = TPL_HIGH_LEVEL;
}
//