summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2017-11-03 16:55:43 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2017-11-07 10:17:28 +0800
commit3d34e92faba409a6c6629ce4c1373181879f5e52 (patch)
tree3b603a8b16557e81759057188dbea826eff7b84e /ShellPkg
parent8182e9f446882c421ae7b2b6e456642cee644d8b (diff)
downloadedk2-3d34e92faba409a6c6629ce4c1373181879f5e52.tar.gz
edk2-3d34e92faba409a6c6629ce4c1373181879f5e52.tar.bz2
edk2-3d34e92faba409a6c6629ce4c1373181879f5e52.zip
ShellPkg/HexEdit: Fix EBC build failure
EfiCpuIoWidthUint8 should be used in HMemImageRead and HMemImageSave. Because CpuIo protocol is now used for memory access. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c
index fce9bbe0e6..12f1492583 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c
@@ -139,7 +139,7 @@ HMemImageRead (
Status = HMemImage.IoFncs->Mem.Read (
HMemImage.IoFncs,
- EfiPciWidthUint8,
+ EfiCpuIoWidthUint8,
Offset,
Size,
Buffer
@@ -262,7 +262,7 @@ HMemImageSave (
//
Status = HMemImage.IoFncs->Mem.Write (
HMemImage.IoFncs,
- EfiPciWidthUint8,
+ EfiCpuIoWidthUint8,
Offset,
Size,
Buffer