]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/DmarTable.c
IntelSiliconPkg IntelVTdPmrPei: Get high top by host address width
[mirror_edk2.git] / IntelSiliconPkg / Feature / VTd / IntelVTdPmrPei / DmarTable.c
index 891efa65468dfe44b50af42bd8259614c94920d7..ea853bd6bc70819ad5c9b00a95a5739b73ad802e 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -528,7 +528,7 @@ ProcessRmrr (
       LowBottom = 0;\r
       LowTop = (UINTN)DmarRmrr->ReservedMemoryRegionBaseAddress;\r
       HighBottom = (UINTN)DmarRmrr->ReservedMemoryRegionLimitAddress + 1;\r
-      HighTop = GetTopMemory ();\r
+      HighTop = LShiftU64 (1, VTdInfo->HostAddressWidth + 1);\r
 \r
       SetDmaProtectedRange (\r
         VTdInfo,\r