Add HobListPtr to pre-OS payload param struct

It might be useful for the pre-OS payload/checker
to have a handle to the HOB list data for additional
support or data checking that the HOB list contains.

Signed-off-by: James Gutbub <james.gutbub@intel.com>
This commit is contained in:
James Gutbub 2019-05-14 11:09:36 -07:00 committed by James Gutbub
parent e75dd48e83
commit c67e5e2955
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ typedef struct {
UINT32 HeapSize;
UINT32 HeapAddr;
OS_BOOT_STATE OsBootState;
UINT32 HobListPtr;
} PRE_OS_PAYLOAD_PARAM;
#pragma pack ()

View File

@ -500,6 +500,7 @@ StartBooting (
PreOsParams.Version = 0x1;
PreOsParams.HeapSize = EFI_SIZE_TO_PAGES (0);
PreOsParams.HeapAddr = (UINT32) AllocatePages (PreOsParams.HeapSize);
PreOsParams.HobListPtr = PcdGet32 (PcdPayloadHobList);
PreOsParams.OsBootState.Esi = (UINT32) BootParams;
PreOsParams.OsBootState.Eip = BootParams->Hdr.Code32Start;