OvmfPkg/PciHostBridgeLib: Set correct Base/Limit for absent resource

In order to match the previous commit, Base must be strictly larger than
Limit if some type of aperture is not available on a PCI root bridge.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Ruiyu Ni 2016-04-30 09:34:54 +08:00
parent f9607bef04
commit c3933ccbba
1 changed files with 3 additions and 3 deletions

View File

@ -125,11 +125,11 @@ InitRootBridge (
RootBus->DmaAbove4G = FALSE; RootBus->DmaAbove4G = FALSE;
RootBus->AllocationAttributes = EFI_PCI_HOST_BRIDGE_COMBINE_MEM_PMEM; RootBus->AllocationAttributes = EFI_PCI_HOST_BRIDGE_COMBINE_MEM_PMEM;
RootBus->PMem.Base = 0; RootBus->PMem.Base = MAX_UINT64;
RootBus->PMem.Limit = 0; RootBus->PMem.Limit = 0;
RootBus->PMemAbove4G.Base = 0; RootBus->PMemAbove4G.Base = MAX_UINT64;
RootBus->PMemAbove4G.Limit = 0; RootBus->PMemAbove4G.Limit = 0;
RootBus->MemAbove4G.Base = 0; RootBus->MemAbove4G.Base = MAX_UINT64;
RootBus->MemAbove4G.Limit = 0; RootBus->MemAbove4G.Limit = 0;
if (PcdGet64 (PcdPciMmio64Size) > 0) { if (PcdGet64 (PcdPciMmio64Size) > 0) {