summaryrefslogtreecommitdiff
path: root/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2018-01-17 11:10:57 +0800
committerStar Zeng <star.zeng@intel.com>2018-01-17 18:34:46 +0800
commitb2725f57c7a1e6feeb176f1563a4f1a8c2eb6c6f (patch)
tree90b607d121ba8d59174a0e5cf6418428ad5d9d22 /IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c
parent9eaa902a52ec1ab0032d0c5a23f9d16493bcb4c5 (diff)
downloadedk2-b2725f57c7a1e6feeb176f1563a4f1a8c2eb6c6f.zip
edk2-b2725f57c7a1e6feeb176f1563a4f1a8c2eb6c6f.tar.gz
edk2-b2725f57c7a1e6feeb176f1563a4f1a8c2eb6c6f.tar.bz2
IntelSiliconPkg IntelVTdPmrPei: Get high top by host address width
Get high top by host address width instead of resource HOB. Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c')
-rw-r--r--IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c b/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c
index 891efa6..ea853bd 100644
--- a/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c
+++ b/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -528,7 +528,7 @@ ProcessRmrr (
LowBottom = 0;
LowTop = (UINTN)DmarRmrr->ReservedMemoryRegionBaseAddress;
HighBottom = (UINTN)DmarRmrr->ReservedMemoryRegionLimitAddress + 1;
- HighTop = GetTopMemory ();
+ HighTop = LShiftU64 (1, VTdInfo->HostAddressWidth + 1);
SetDmaProtectedRange (
VTdInfo,