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>
(cherry picked from commit b2725f57c7
)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user