diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-22 04:54:18 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-22 04:54:18 +0000 |
commit | 667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6 (patch) | |
tree | d4a47d8bd77d9610591296154fc337871537a619 | |
parent | 9ed65b1005034bc4c051af5e237fa4e637570afc (diff) | |
download | edk2-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
-rw-r--r-- | OvmfPkg/PlatformPei/Platform.c | 9 |
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);
}
|