UefiPayloadPkg: Fix the build issue for coreboot

V2: Fix GCC build issue.
There is typo in previous change caused coreboot build failure.
This patch fixed the build issue.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
Guo Dong 2021-10-14 17:18:43 -07:00 committed by mergify[bot]
parent 7e43d3e086
commit f10a112f08
2 changed files with 5 additions and 3 deletions

View File

@ -194,8 +194,8 @@ GetParameterBase (
return NULL;
}
PcdSet64S (PcdBootloaderParameter, (UINTN)CbTablePtr);
ASSERT_EFI_STATUS (Status);
Status = PcdSet64S (PcdBootloaderParameter, (UINTN)CbTablePtr);
ASSERT_EFI_ERROR (Status);
return CbTablePtr;
}

View File

@ -406,7 +406,9 @@ _ModuleEntryPoint (
SERIAL_PORT_INFO SerialPortInfo;
UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO *UniversalSerialPort;
PcdSet64S (PcdBootloaderParameter, BootloaderParameter);
Status = PcdSet64S (PcdBootloaderParameter, BootloaderParameter);
ASSERT_EFI_ERROR (Status);
// Initialize floating point operating environment to be compliant with UEFI spec.
InitializeFloatingPointUnits ();