audk/UefiPayloadPkg/Library
Lean Sheng Tan bfefdc2c49 UefiPayloadPkg: Fix PciHostBridgeLib
Don't assume a 64bit register always holds an address greater than 4GB.
Check the value in the register and decide which Aperature it should be
assigned to.

Fixes assertion
"ASSERT [PciHostBridgeDxe] Bridge->MemAbove4G.Base >= 0x0000000100000000ULL".

Tested with coreboot as bootloader on platforms that have PCI resource
above 4GiB and on platforms that don't have resource above 4GiB.

Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Guo Dong <guo.dong@intel.com>
2022-04-10 17:46:10 +00:00
..
AcpiTimerLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CbParseLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugPrintErrorLevelLibHob UefiPayloadPkg: Add a new DebugPrintErrorLevelLib instance 2022-04-03 08:33:56 +00:00
DxeHobLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DxeHobListLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DxeHobListLibNull UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FlashDeviceLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PayloadEntryHobLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PciHostBridgeLib UefiPayloadPkg: Fix PciHostBridgeLib 2022-04-10 17:46:10 +00:00
PciSegmentInfoLibAcpiBoardInfo UefiPayloadPkg: Add missing Guid gUefiAcpiBoardInfoGuid 2021-12-08 04:08:21 +00:00
PlatformBootManagerLib UefiPayloadPkg/Library/PlatformBootManagerLib: Remove broken VGA detection 2022-03-29 06:48:57 +00:00
PlatformHookLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformSupportLibNull UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SblParseLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SpiFlashLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00