From 667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6 Mon Sep 17 00:00:00 2001 From: jljusten Date: Tue, 22 Mar 2011 04:54:18 +0000 Subject: [PATCH] OvmfPkg/PlatformPei: Fix issue with 'RELEASE' tag build When building in release mode on OVMF, the ASSERT_EFI_ERROR macro is empty. So, to set the BootMode, in a release build, it must be outside of ASSERT_EFI_ERROR. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11413 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/PlatformPei/Platform.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index aa64aa381c..5479b76f4a 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -221,8 +221,13 @@ VOID BootModeInitialization ( ) { - ASSERT_EFI_ERROR (PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION)); - ASSERT_EFI_ERROR (PeiServicesInstallPpi (mPpiBootMode)); + EFI_STATUS Status; + + Status = PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION); + ASSERT_EFI_ERROR (Status); + + Status = PeiServicesInstallPpi (mPpiBootMode); + ASSERT_EFI_ERROR (Status); } -- 2.39.2