summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
index 910a88c443..cba8ca0d09 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
@@ -436,6 +436,11 @@ PciIoMemRead (
return EFI_UNSUPPORTED;
}
+ if (Width == EfiPciIoWidthUint64) {
+ Width = EfiPciIoWidthUint32;
+ Count *= 2;
+ }
+
//
// If request is not aligned, then convert request to EfiPciIoWithXXXUint8
//