Vlv2TbltDevicePkg/PlatformInitPei: Explicit call to dump MTRR Setting

Mtrr library instance removed MtrrDebugPrintAllMtrrs() from MtrrSetAllMtrrs() to
make MP safe. We need to explicitly call MtrrDebugPrintAllMtrrs() to dump MTRR
setting.

CC: David Wei <david.wei@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: David Wei <david.wei@intel.com>
This commit is contained in:
Jeff Fan
2016-07-19 08:50:08 +08:00
parent afa7b97154
commit 5443e7fee2

View File

@@ -1,6 +1,6 @@
/** @file /** @file
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR> Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under This program and the accompanying materials are licensed and made available under
@@ -222,8 +222,10 @@ SetPeiCacheMode (
if (MtrrSetting.Variables.Mtrr[Index].Base == 0){ if (MtrrSetting.Variables.Mtrr[Index].Base == 0){
break; break;
} }
DEBUG ((EFI_D_INFO, "Base=%lx, Mask=%lx\n",MtrrSetting.Variables.Mtrr[Index].Base ,MtrrSetting.Variables.Mtrr[Index].Mask)); DEBUG ((EFI_D_INFO, "Base=%lx, Mask=%lx\n",MtrrSetting.Variables.Mtrr[Index].Base ,MtrrSetting.Variables.Mtrr[Index].Mask));
} }
//
// set FE/E bits for IA32_MTRR_DEF_TYPE // set FE/E bits for IA32_MTRR_DEF_TYPE
// //
MtrrSetting.MtrrDefType |= 3 <<10; MtrrSetting.MtrrDefType |= 3 <<10;