VirtualBox

Changeset 76313 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 20, 2018 1:18:51 PM (6 years ago)
Author:
vboxsync
Message:

EFI: Adopted EDK2 patch (commit edf289685b9244d27602addd9ea5d933fade839f) to fix a hang in LocatePciExpressCapabilityRegBlock() if PCIe device is found behind a non-PCIe bridge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c

    r48674 r76313  
    22  PCI command register operations supporting functions implementation for PCI Bus module.
    33
    4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
     4Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
    55This program and the accompanying materials
    66are licensed and made available under the terms and conditions of the BSD License
     
    201201  )
    202202{
    203   UINT32  CapabilityPtr;
    204   UINT32  CapabilityEntry;
    205   UINT16  CapabilityID;
     203  EFI_STATUS           Status;
     204  UINT32               CapabilityPtr;
     205  UINT32               CapabilityEntry;
     206  UINT16               CapabilityID;
    206207
    207208  //
     
    223224    //
    224225    CapabilityPtr &= 0xFFC;
    225     PciIoDevice->PciIo.Pci.Read (
    226                              &PciIoDevice->PciIo,
    227                              EfiPciIoWidthUint32,
    228                              CapabilityPtr,
    229                              1,
    230                              &CapabilityEntry
    231                              );
     226    Status = PciIoDevice->PciIo.Pci.Read (
     227                                      &PciIoDevice->PciIo,
     228                                      EfiPciIoWidthUint32,
     229                                      CapabilityPtr,
     230                                      1,
     231                                      &CapabilityEntry
     232                                      );
     233    if (EFI_ERROR (Status)) {
     234      break;
     235    }
    232236
    233237    CapabilityID = (UINT16) CapabilityEntry;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette