]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/mm: Fix mm to support multiple root bridge platform
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 10 Dec 2015 04:18:35 +0000 (04:18 +0000)
committerniruiyu <niruiyu@Edk2>
Thu, 10 Dec 2015 04:18:35 +0000 (04:18 +0000)
commit304316f430519b5a84cf7402d1721d22ba6f94b7
treeb8845da1d73360dc3005aa0fdda1f77184706b1e
parent25e34a2df4d17c8e3ba218179062a9a63f42a957
ShellPkg/mm: Fix mm to support multiple root bridge platform

In multiple root bridge platforms, different root bridges may
share the same segment but occupy different range of buses,
or may occupy different segments.
The fix is to find the correct root bridge IO instance by
comparing not only the segment but also the bus ranges.
It tries to access the MMIO and IO in the following order:
PciRootBridgeIo, CpuIo and direct IO.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19181 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellDebug1CommandsLib/Mm.c
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.h
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.uni
ShellPkg/ShellPkg.dsc