]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PciHostBridgeLib: Set correct Base/Limit for absent resource
authorRuiyu Ni <ruiyu.ni@intel.com>
Sat, 30 Apr 2016 01:34:54 +0000 (09:34 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 11 May 2016 00:53:36 +0000 (08:53 +0800)
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>
OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c

index 1d3d10ad7379d368dabc29cc49d1e18eaed57686..9e014981875946e71650abab3b45bd0fa7cd600a 100644 (file)
@@ -125,11 +125,11 @@ InitRootBridge (
   RootBus->DmaAbove4G = FALSE;\r
 \r
   RootBus->AllocationAttributes = EFI_PCI_HOST_BRIDGE_COMBINE_MEM_PMEM;\r
-  RootBus->PMem.Base            = 0;\r
+  RootBus->PMem.Base            = MAX_UINT64;\r
   RootBus->PMem.Limit           = 0;\r
-  RootBus->PMemAbove4G.Base     = 0;\r
+  RootBus->PMemAbove4G.Base     = MAX_UINT64;\r
   RootBus->PMemAbove4G.Limit    = 0;\r
-  RootBus->MemAbove4G.Base      = 0;\r
+  RootBus->MemAbove4G.Base      = MAX_UINT64;\r
   RootBus->MemAbove4G.Limit     = 0;\r
 \r
   if (PcdGet64 (PcdPciMmio64Size) > 0) {\r