diff options
author | Laszlo Ersek <lersek@redhat.com> | 2015-02-23 16:04:07 +0000 |
---|---|---|
committer | lersek <lersek@Edk2> | 2015-02-23 16:04:07 +0000 |
commit | ad3359eb43a9b54042a8692c2b72a0df77f908da (patch) | |
tree | 3f0e6085636d74f483b0d363761275735273b722 /BaseTools/Makefile | |
parent | e5ceb6c9d39086460e6b5933e40815be57684b84 (diff) | |
download | edk2-platforms-ad3359eb43a9b54042a8692c2b72a0df77f908da.tar.xz |
ArmVirtualizationPkg: clone BasePciExpressLib, cache PCIe config base
The BarExisted() function in
"MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c" raises the TPL to
TPL_HIGH_LEVEL before accessing PCI config space.
The PciExpressLib instance under "MdePkg/Library/BasePciExpressLib" --
serving the PCI config space access -- calls
PcdGet64(PcdPciExpressBaseAddress) in turn, for each such call.
The PcdGet64() function, when issued at TPL_HIGH_LEVEL, triggers an
ASSERT(). PcdGet64() is based on a protocol in this UEFI phase, and
protocol handler services are not allowed above TPL_NOTIFY (see Table 23
"TPL Restrictions" in the UEFI spec).
Clone the library, and in a new constructor, cache the PCD in a global
variable.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Olivier Martin <Olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16909 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Makefile')
0 files changed, 0 insertions, 0 deletions