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 /OvmfPkg/PlatformPei | |
parent | 9ed65b1005034bc4c051af5e237fa4e637570afc (diff) | |
download | edk2-667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6.zip edk2-667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6.tar.gz edk2-667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6.tar.bz2 |
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.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index aa64aa3..5479b76 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);
}
|