]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PlatformPei: Fix issue with 'RELEASE' tag build
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 22 Mar 2011 04:54:18 +0000 (04:54 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 22 Mar 2011 04:54:18 +0000 (04:54 +0000)
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

index aa64aa381c0286353f42fdd541ab44efa56e6f8e..5479b76f4ad37d8fc9c445d5b95e3ae865c32702 100644 (file)
@@ -221,8 +221,13 @@ VOID
 BootModeInitialization (\r
   )\r
 {\r
 BootModeInitialization (\r
   )\r
 {\r
-  ASSERT_EFI_ERROR (PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION));\r
-  ASSERT_EFI_ERROR (PeiServicesInstallPpi (mPpiBootMode));\r
+  EFI_STATUS Status;\r
+\r
+  Status = PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION);\r
+  ASSERT_EFI_ERROR (Status);\r
+\r
+  Status = PeiServicesInstallPpi (mPpiBootMode);\r
+  ASSERT_EFI_ERROR (Status);\r
 }\r
 \r
 \r
 }\r
 \r
 \r