From 978d428ec3ca2520c217819901c8465235c45c5e Mon Sep 17 00:00:00 2001 From: "Ma, Maurice" Date: Thu, 30 Sep 2021 09:59:07 -0700 Subject: UefiPayloadPkg: Add PCI root bridge info hob support for SBL Current UefiPayloadPkg can suport PCI root bridge info HOB provided by bootloader. For UniversalPayload, bootloader can directly provide this HOB for payload consumption. However, for legacy UEFI payload, it is required to migrate the HOB information from bootloader HOB space to UEFI payload HOB space. This patch added the missing part for the bootloader ParseLib in order to support both legacy and universal UEFI payload. This patch was tested on Slim Bootloader with latest UEFI payload, and it worked as expected. Cc: Ray Ni Cc: Guo Dong Cc: Benjamin You Signed-off-by: Maurice Ma Reviewed-by: Guo Dong --- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'UefiPayloadPkg/UefiPayloadEntry') diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c index f2ac3d2c69..5a1e578668 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c @@ -321,6 +321,14 @@ BuildHobFromBl ( return Status; } + // + // Parse the misc info provided by bootloader + // + Status = ParseMiscInfo (); + if (EFI_ERROR (Status)) { + DEBUG ((DEBUG_WARN, "Error when parsing misc info, Status = %r\n", Status)); + } + // // Parse platform specific information. // -- cgit