UefiPayloadPkg: Dump hob info from gEdkiiBootManagerMenuFileGuid
V1: Dump this hob infomation from gEdkiiBootManagerMenuFileGuid V2: Delete the duplicated assertions V3: Add input parameter in Comment Cc: Guo Dong <guo.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Maurice Ma <maurice.ma@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Dun Tan <dun.tan@intel.com>
This commit is contained in:
parent
d96df7e993
commit
dcd3d63f4f
|
@ -10,6 +10,7 @@
|
||||||
#include <UniversalPayload/ExtraData.h>
|
#include <UniversalPayload/ExtraData.h>
|
||||||
#include <Guid/MemoryTypeInformation.h>
|
#include <Guid/MemoryTypeInformation.h>
|
||||||
#include <Guid/AcpiBoardInfoGuid.h>
|
#include <Guid/AcpiBoardInfoGuid.h>
|
||||||
|
#include <Guid/BootManagerMenu.h>
|
||||||
|
|
||||||
#define ROW_LIMITER 16
|
#define ROW_LIMITER 16
|
||||||
|
|
||||||
|
@ -410,6 +411,28 @@ PrintMemoryTypeInfoGuidHob (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Print the information in EdkiiBootManagerMenuFileGuid.
|
||||||
|
@param[in] HobRaw A pointer to the start of gEdkiiBootManagerMenuFileGuid HOB.
|
||||||
|
@param[in] HobLength The size of the data buffer.
|
||||||
|
@retval EFI_SUCCESS If it completed successfully.
|
||||||
|
**/
|
||||||
|
EFI_STATUS
|
||||||
|
PrintBootManagerMenuGuidHob (
|
||||||
|
IN UINT8 *HobRaw,
|
||||||
|
IN UINT16 HobLength
|
||||||
|
)
|
||||||
|
{
|
||||||
|
UNIVERSAL_PAYLOAD_BOOT_MANAGER_MENU *BootManagerMenuFile;
|
||||||
|
|
||||||
|
BootManagerMenuFile = (UNIVERSAL_PAYLOAD_BOOT_MANAGER_MENU *) GET_GUID_HOB_DATA (HobRaw);
|
||||||
|
ASSERT (HobLength >= sizeof (*BootManagerMenuFile));
|
||||||
|
DEBUG ((DEBUG_INFO, " Revision = 0x%x\n", BootManagerMenuFile->Header.Revision));
|
||||||
|
DEBUG ((DEBUG_INFO, " Length = 0x%x\n", BootManagerMenuFile->Header.Length));
|
||||||
|
DEBUG ((DEBUG_INFO, " FileName = %g\n", &BootManagerMenuFile->FileName));
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Mappint table for dump Guid Hob information.
|
// Mappint table for dump Guid Hob information.
|
||||||
// This table can be easily extented.
|
// This table can be easily extented.
|
||||||
|
@ -422,7 +445,8 @@ GUID_HOB_PRINT_HANDLE GuidHobPrintHandleTable[] = {
|
||||||
{&gUefiAcpiBoardInfoGuid, PrintAcpiBoardInfoGuidHob, "gUefiAcpiBoardInfoGuid(Acpi Guid)"},
|
{&gUefiAcpiBoardInfoGuid, PrintAcpiBoardInfoGuidHob, "gUefiAcpiBoardInfoGuid(Acpi Guid)"},
|
||||||
{&gUniversalPayloadPciRootBridgeInfoGuid, PrintPciRootBridgeInfoGuidHob, "gUniversalPayloadPciRootBridgeInfoGuid(Pci Guid)"},
|
{&gUniversalPayloadPciRootBridgeInfoGuid, PrintPciRootBridgeInfoGuidHob, "gUniversalPayloadPciRootBridgeInfoGuid(Pci Guid)"},
|
||||||
{&gEfiMemoryTypeInformationGuid, PrintMemoryTypeInfoGuidHob, "gEfiMemoryTypeInformationGuid(Memory Type Information Guid)"},
|
{&gEfiMemoryTypeInformationGuid, PrintMemoryTypeInfoGuidHob, "gEfiMemoryTypeInformationGuid(Memory Type Information Guid)"},
|
||||||
{&gUniversalPayloadExtraDataGuid, PrintExtraDataGuidHob, "gUniversalPayloadExtraDataGuid(PayLoad Extra Data Guid)"}
|
{&gUniversalPayloadExtraDataGuid, PrintExtraDataGuidHob, "gUniversalPayloadExtraDataGuid(PayLoad Extra Data Guid)"},
|
||||||
|
{&gEdkiiBootManagerMenuFileGuid, PrintBootManagerMenuGuidHob, "gEdkiiBootManagerMenuFileGuid(Boot Manager Menu File Guid)"}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
gUniversalPayloadAcpiTableGuid
|
gUniversalPayloadAcpiTableGuid
|
||||||
gUniversalPayloadPciRootBridgeInfoGuid
|
gUniversalPayloadPciRootBridgeInfoGuid
|
||||||
gUniversalPayloadSmbios3TableGuid
|
gUniversalPayloadSmbios3TableGuid
|
||||||
|
gEdkiiBootManagerMenuFileGuid
|
||||||
|
|
||||||
[FeaturePcd.IA32]
|
[FeaturePcd.IA32]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode ## CONSUMES
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode ## CONSUMES
|
||||||
|
|
Loading…
Reference in New Issue