The patch sets fix a bug in PciHostBridge driver that prevents PMEM access sometimes. Additionally, it enhances the boundary check and add a new macro to simplify the code.
V2: Patch 3/4 uses Resource as parameter instead of R and treat the parameter as a pointer. Patch 4/4 is a new patch suggested by Star to move declaration of mIoMmu to header file. Ruiyu Ni (4): MdeModulePkg/PciHostBridge: Enhance boundary check in Io/Mem.Read/Write MdeModulePkg/PciHostBridge: Fix a bug that prevents PMEM access MdeModulePkg/PciHostBridge: Add RESOURCE_VALID() to simplify code MdeModulePkg/PciHostBridge: Move declaration of mIoMmu to header file .../Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | 4 +- .../Bus/Pci/PciHostBridgeDxe/PciHostBridge.h | 3 + .../Bus/Pci/PciHostBridgeDxe/PciRootBridge.h | 1 - .../Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c | 126 ++++++++++++--------- 4 files changed, 78 insertions(+), 56 deletions(-) -- 2.16.1.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel