summaryrefslogtreecommitdiff
path: root/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c')
-rw-r--r--IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c b/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c
index 096f899be6..e124e39b6c 100644
--- a/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c
+++ b/IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c
@@ -14,6 +14,11 @@
**/
+//
+// Include common header file for this module.
+//
+#include "CommonHeader.h"
+
#include "DxeCpuIoLibInternal.h"
//
@@ -146,7 +151,7 @@ MmioReadWorker (
UINT64 Data;
if (mPciRootBridgeIo != NULL) {
- Status = mPciRootBridgeIo.Mem.Read (mPciRootBridgeIo, Width, Address, 1, &Data);
+ Status = mPciRootBridgeIo->Mem.Read (mPciRootBridgeIo, Width, Address, 1, &Data);
} else {
Status = mCpuIo->Mem.Read (mCpuIo, Width, Address, 1, &Data);
}