From 3d34e92faba409a6c6629ce4c1373181879f5e52 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Fri, 3 Nov 2017 16:55:43 +0800 Subject: [PATCH 1/1] 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 --- .../Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c | 4 ++-- 1 file 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 -- 2.39.2