]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c
1. fixed one bug in Common/FrameworkFirmwareFileSystem.h
[mirror_edk2.git] / IntelFrameworkPkg / Library / DxeIoLibCpuIo / IoLib.c
index 096f899be6952810f5a2ae4075408e60e506ed7c..e124e39b6cae59ddfeaf9c75bcb4e2cc4a5e09da 100644 (file)
 \r
 **/\r
 \r
 \r
 **/\r
 \r
+//\r
+// Include common header file for this module.\r
+//\r
+#include "CommonHeader.h"\r
+\r
 #include "DxeCpuIoLibInternal.h"\r
 \r
 //\r
 #include "DxeCpuIoLibInternal.h"\r
 \r
 //\r
@@ -146,7 +151,7 @@ MmioReadWorker (
   UINT64                            Data;\r
 \r
   if (mPciRootBridgeIo != NULL) {\r
   UINT64                            Data;\r
 \r
   if (mPciRootBridgeIo != NULL) {\r
-    Status = mPciRootBridgeIo.Mem.Read (mPciRootBridgeIo, Width, Address, 1, &Data);\r
+    Status = mPciRootBridgeIo->Mem.Read (mPciRootBridgeIo, Width, Address, 1, &Data);\r
   } else {\r
     Status = mCpuIo->Mem.Read (mCpuIo, Width, Address, 1, &Data);\r
   }\r
   } else {\r
     Status = mCpuIo->Mem.Read (mCpuIo, Width, Address, 1, &Data);\r
   }\r