summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuo Dong <guo.dong@intel.com>2021-10-14 17:18:43 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-10-15 14:21:45 +0000
commitf10a112f08f3fb4a92c3d22f069f6066a12db3be (patch)
treec49fe324a33ab23a6608af0556edfde01f0abbbf
parent7e43d3e08611ac4c4bc41c46470052d4118168eb (diff)
downloadedk2-f10a112f08f3fb4a92c3d22f069f6066a12db3be.tar.gz
edk2-f10a112f08f3fb4a92c3d22f069f6066a12db3be.tar.bz2
edk2-f10a112f08f3fb4a92c3d22f069f6066a12db3be.zip
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>
-rw-r--r--UefiPayloadPkg/Library/CbParseLib/CbParseLib.c4
-rw-r--r--UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c b/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c
index f81aa0f301..4be5d66ba5 100644
--- a/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c
+++ b/UefiPayloadPkg/Library/CbParseLib/CbParseLib.c
@@ -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;
}
diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
index 5a1e578668..0e6dcf10f9 100644
--- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
+++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
@@ -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 ();