summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuDxe
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2017-04-10 14:03:28 +0800
committerJeff Fan <jeff.fan@intel.com>2017-04-12 08:57:06 +0800
commitc5719579ce8c5dec503a53ff02ce1be4899b2852 (patch)
tree29d9298d34324f9b3395f3b590a3c7db5c7a934c /UefiCpuPkg/CpuDxe
parentf0f1a3cbf667888a2cf4aab666727f18ed3a512d (diff)
downloadedk2-c5719579ce8c5dec503a53ff02ce1be4899b2852.tar.gz
edk2-c5719579ce8c5dec503a53ff02ce1be4899b2852.tar.bz2
edk2-c5719579ce8c5dec503a53ff02ce1be4899b2852.zip
UefiCpuPkg: Error Level is not used correctly
Cc: Feng Tian <feng.tian@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'UefiCpuPkg/CpuDxe')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuPageTable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
index ab664b47d6..2c61e7503e 100644
--- a/UefiCpuPkg/CpuDxe/CpuPageTable.c
+++ b/UefiCpuPkg/CpuDxe/CpuPageTable.c
@@ -634,10 +634,10 @@ ConvertMemoryPageAttributes (
switch(CurrentPagingContext.MachineType) {
case IMAGE_FILE_MACHINE_I386:
if (CurrentPagingContext.ContextData.Ia32.PageTableBase == 0) {
- DEBUG ((DEBUG_ERROR, "PageTable is 0!\n"));
if (Attributes == 0) {
return EFI_SUCCESS;
} else {
+ DEBUG ((DEBUG_ERROR, "PageTable is 0!\n"));
return EFI_UNSUPPORTED;
}
}