Code refinement.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10647 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24
2010-07-13 03:08:54 +00:00
parent 099f2b1882
commit 430fbbe096
14 changed files with 1010 additions and 333 deletions

View File

@@ -136,7 +136,7 @@ CommonExceptionHandler (
"!!!! IA32 Exception Type - %08x !!!!\n",
InterruptType
));
if (mErrorCodeFlag & (1 << InterruptType)) {
if ((mErrorCodeFlag & (1 << InterruptType)) != 0) {
DEBUG ((
EFI_D_ERROR,
"ExceptionData - %08x\n",
@@ -217,7 +217,7 @@ CommonExceptionHandler (
"!!!! X64 Exception Type - %016lx !!!!\n",
(UINT64)InterruptType
));
if (mErrorCodeFlag & (1 << InterruptType)) {
if ((mErrorCodeFlag & (1 << InterruptType)) != 0) {
DEBUG ((
EFI_D_ERROR,
"ExceptionData - %016lx\n",
@@ -676,11 +676,11 @@ InitializeMtrrMask (
}
/**
Gets GCD Mem Space type from MTRR Type
Gets GCD Mem Space type from MTRR Type.
This function gets GCD Mem Space type from MTRR Type
This function gets GCD Mem Space type from MTRR Type.
@param MtrrAttribute MTRR memory type
@param MtrrAttributes MTRR memory type
@return GCD Mem Space type
@@ -1009,7 +1009,6 @@ RefreshGcdMemoryAttributes (
Initialize Interrupt Descriptor Table for interrupt handling.
**/
STATIC
VOID
InitInterruptDescriptorTable (
VOID