diff --git a/OvmfPkg/Library/PlatformInitLib/MemDetect.c b/OvmfPkg/Library/PlatformInitLib/MemDetect.c index 611cad9867..b4ba998fe1 100644 --- a/OvmfPkg/Library/PlatformInitLib/MemDetect.c +++ b/OvmfPkg/Library/PlatformInitLib/MemDetect.c @@ -815,7 +815,7 @@ PlatformDynamicMmioWindow ( UINT64 AddrSpace, MmioSpace; AddrSpace = LShiftU64 (1, PlatformInfoHob->PhysMemAddressWidth); - MmioSpace = LShiftU64 (1, PlatformInfoHob->PhysMemAddressWidth - 3); + MmioSpace = LShiftU64 (1, PlatformInfoHob->PhysMemAddressWidth - 2); if (PlatformInfoHob->PcdPciMmio64Override) { DEBUG ((DEBUG_INFO, "%a: using fwcfg override for mmio window\n", __func__));