summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2017-10-19 10:47:40 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2017-10-20 12:52:08 +0800
commitf545256641f144c8462f57ec0342cd0470d4c892 (patch)
treef3124f4c42f8abe9627e71744797b305362553d3 /MdeModulePkg/Bus
parent86cabbcfa005ca9c9589402d4fb7c984e741cc19 (diff)
downloadedk2-f545256641f144c8462f57ec0342cd0470d4c892.tar.gz
edk2-f545256641f144c8462f57ec0342cd0470d4c892.tar.bz2
edk2-f545256641f144c8462f57ec0342cd0470d4c892.zip
MdeModulePkg/PciHostBridge: Set SpecificFlag to 0 for Mem32/Mem64
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>
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
index 70726a6be8..1494848c3e 100644
--- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
+++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
@@ -2,7 +2,7 @@
Provides the basic interfaces to abstract a PCI Host Bridge Resource Allocation.
-Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -574,7 +574,8 @@ ResourceConflict (
Descriptor->Len = sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR) - 3;
Descriptor->AddrRangeMin = ResAllocNode->Base;
Descriptor->AddrRangeMax = ResAllocNode->Alignment;
- Descriptor->AddrLen = ResAllocNode->Length;
+ Descriptor->AddrLen = ResAllocNode->Length;
+ Descriptor->SpecificFlag = 0;
switch (ResAllocNode->Type) {
case TypeIo: