]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/PciHostBridge: Set SpecificFlag to 0 for Mem32/Mem64
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 19 Oct 2017 02:47:40 +0000 (10:47 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 20 Oct 2017 04:52:08 +0000 (12:52 +0800)
Existing code forgot to set Descriptor->SpecificFlag to 0 when
the resource type is non-prefetchable MMIO.
The patch adds the missing assignment.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c

index 70726a6be8ff0d959956573ea5f3e47556edf2b3..1494848c3e8c5a256a5c6a1242fee7352795d954 100644 (file)
@@ -2,7 +2,7 @@
 \r
   Provides the basic interfaces to abstract a PCI Host Bridge Resource Allocation.\r
 \r
-Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2017, 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
@@ -574,7 +574,8 @@ ResourceConflict (
       Descriptor->Len = sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR) - 3;\r
       Descriptor->AddrRangeMin = ResAllocNode->Base;\r
       Descriptor->AddrRangeMax = ResAllocNode->Alignment;\r
-      Descriptor->AddrLen = ResAllocNode->Length;\r
+      Descriptor->AddrLen      = ResAllocNode->Length;\r
+      Descriptor->SpecificFlag = 0;\r
       switch (ResAllocNode->Type) {\r
 \r
       case TypeIo:\r