]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/hexeditor: Use CpuIo for memory access
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 1 Nov 2017 10:12:53 +0000 (18:12 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 2 Nov 2017 00:40:33 +0000 (08:40 +0800)
commite90153cbbf8fd671062db6fce570b2aa109b019c
treeef07bf395bb9870d4e4d5c7c83742dcec132ae3d
parent3380a591232de2ab3007ab051010a67c3d000d1c
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>
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c