summaryrefslogtreecommitdiff
path: root/OvmfPkg/PlatformPei
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-03-22 04:54:18 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-03-22 04:54:18 +0000
commit667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6 (patch)
treed4a47d8bd77d9610591296154fc337871537a619 /OvmfPkg/PlatformPei
parent9ed65b1005034bc4c051af5e237fa4e637570afc (diff)
downloadedk2-platforms-667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6.tar.xz
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
Diffstat (limited to 'OvmfPkg/PlatformPei')
-rw-r--r--OvmfPkg/PlatformPei/Platform.c9
1 files 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);
}