From: Ruiyu Ni Date: Fri, 3 Nov 2017 08:55:43 +0000 (+0800) Subject: ShellPkg/HexEdit: Fix EBC build failure X-Git-Tag: edk2-stable201903~3133 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3d34e92faba409a6c6629ce4c1373181879f5e52 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 Reviewed-by: Jaben Carsey --- 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