mirror of https://github.com/acidanthera/audk.git
IntelSiliconPkg/VtdInfoSample: Fix IGD RMRR memory.
Fix a calculation problem in IGD RMRR memory. Cc: Zeng Star <zeng.star@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Zeng Star <zeng.star@intel.com>
This commit is contained in:
parent
f6194f5a64
commit
c13cb4aebf
|
@ -159,7 +159,7 @@ PatchDmar (
|
|||
/// Calculate GTT mem size
|
||||
///
|
||||
GttMemSize = 0;
|
||||
GttMode = PciRead16 (PCI_LIB_ADDRESS(0, 0, 0, R_SA_GGC) & B_SKL_SA_GGC_GGMS_MASK) >> N_SKL_SA_GGC_GGMS_OFFSET;
|
||||
GttMode = (PciRead16 (PCI_LIB_ADDRESS(0, 0, 0, R_SA_GGC)) & B_SKL_SA_GGC_GGMS_MASK) >> N_SKL_SA_GGC_GGMS_OFFSET;
|
||||
if (GttMode <= V_SKL_SA_GGC_GGMS_8MB) {
|
||||
GttMemSize = (1 << GttMode) * (1024) * (1024);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue