mirror_edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit
Ruiyu Ni e90153cbbf ShellPkg/hexeditor: Use CpuIo for memory access
The original code uses PciRootBridgeIo for memory access.
It worked before MdeModulePkg/PciHostBridgeDxe driver was checked in.
But MdeModulePkg/PciHostBridgeDxe adds checks to ensure the MMIO
access request is in the scope of the current RootBridgeIo instance.
It causes "hexeditor -m 0 2" reports error because memory address 0
surely is not in the scope of any RootBridgeIo instance.
In fact only accessing the MMIO space occupied by the RootBridgeIo
can work.

The patch changes hexeditor to use CpuIo 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>
2017-11-02 08:40:33 +08:00
..
BufferImage.c ShellPkg: Refine casting expression result to bigger size 2017-03-06 14:33:25 +08:00
BufferImage.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
Clipboard.c add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
Clipboard.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
DiskImage.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
DiskImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
FileImage.c ShellPkg: Fix typos. 2015-02-02 01:51:59 +00:00
FileImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
HexEdit.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
HexEditor.h add Edit and HexEdit commands. 2011-03-25 21:15:07 +00:00
HexEditorTypes.h ShellPkg/hexeditor: Use CpuIo for memory access 2017-11-02 08:40:33 +08:00
HexeditStrings.uni ShellPkg: Convert all .uni files to utf-8 2015-12-09 23:07:58 +00:00
MainHexEditor.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
MainHexEditor.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
MemImage.c ShellPkg/hexeditor: Use CpuIo for memory access 2017-11-02 08:40:33 +08:00
MemImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
Misc.c update copyright line format 2011-06-07 08:08:19 +00:00
Misc.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00