diff options
author | VictorX Hsu <victorx.hsu@intel.com> | 2022-11-03 18:52:41 +0800 |
---|---|---|
committer | James Lu <james.lu@intel.com> | 2022-11-04 12:38:29 +0800 |
commit | 2695e4921944d12be3d7e38f8e68a5c5ed01b005 (patch) | |
tree | 8a15ad6f8f2135db1e73ef5d4fd03ffa424c1e2b /UefiPayloadPkg/UefiPayloadEntry | |
parent | ee3da09bb2b7284a8bda6b7d85160cdd63cfb405 (diff) | |
download | edk2-2695e4921944d12be3d7e38f8e68a5c5ed01b005.tar.gz edk2-2695e4921944d12be3d7e38f8e68a5c5ed01b005.tar.bz2 edk2-2695e4921944d12be3d7e38f8e68a5c5ed01b005.zip |
UefiPayloadPkg: Boot mode in PHIT HOB will not be updated
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4136
System will depend on Boot Mode value to do different behavior
Update during Capsule Update process. So UPL need to support
update boot mode.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Reviewed-by: James Lu <james.lu@intel.com>
Reviewed-by: Gua Guo <gua.guo@intel.com>
Signed-off-by: VictorX Hsu <victorx.hsu@intel.com>
Diffstat (limited to 'UefiPayloadPkg/UefiPayloadEntry')
-rw-r--r-- | UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c b/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c index edb3c20471..09aee89680 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c @@ -309,6 +309,7 @@ BuildHobs ( EFI_HOB_FIRMWARE_VOLUME *FvHob;
UNIVERSAL_PAYLOAD_ACPI_TABLE *AcpiTable;
ACPI_BOARD_INFO *AcpiBoardInfo;
+ EFI_HOB_HANDOFF_INFO_TABLE *HobInfo;
Hob.Raw = (UINT8 *)BootloaderParameter;
MinimalNeededSize = FixedPcdGet32 (PcdSystemMemoryUefiRegionSize);
@@ -368,7 +369,8 @@ BuildHobs ( MemoryTop = FreeMemoryTop;
}
- HobConstructor ((VOID *)(UINTN)MemoryBottom, (VOID *)(UINTN)MemoryTop, (VOID *)(UINTN)FreeMemoryBottom, (VOID *)(UINTN)FreeMemoryTop);
+ HobInfo = HobConstructor ((VOID *)(UINTN)MemoryBottom, (VOID *)(UINTN)MemoryTop, (VOID *)(UINTN)FreeMemoryBottom, (VOID *)(UINTN)FreeMemoryTop);
+ HobInfo->BootMode = Hob.HandoffInformationTable->BootMode;
//
// From now on, mHobList will point to the new Hob range.
//
|