diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-13 03:08:54 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-13 03:08:54 +0000 |
commit | 430fbbe0968c9ce6748203776a13e96d367c3bce (patch) | |
tree | dc44376b91c52ae81537e523baf39f3a3cccd2f3 /UefiCpuPkg/CpuDxe/CpuDxe.c | |
parent | 099f2b1882cb955b59fa8c0ce33ccd9db0318e36 (diff) | |
download | edk2-430fbbe0968c9ce6748203776a13e96d367c3bce.tar.gz edk2-430fbbe0968c9ce6748203776a13e96d367c3bce.tar.bz2 edk2-430fbbe0968c9ce6748203776a13e96d367c3bce.zip |
Code refinement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10647 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuDxe.c')
-rw-r--r-- | UefiCpuPkg/CpuDxe/CpuDxe.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c index 66955c3f19..454659150f 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.c +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c @@ -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
|