]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
OvmfPkg/MemEncryptSevLib: find pages of initial SMRAM save state map
[mirror_edk2.git] / OvmfPkg / Library / PlatformBootManagerLib / BdsPlatform.c
index 16618a8f57f08636ba62ce5f68cbb8d0d8219092..025252e72b3905453adef678aa7acb62bec39289 100644 (file)
@@ -37,13 +37,6 @@ CONST UINT8 PciHostIrqs[] = {
   0x0a, 0x0a, 0x0b, 0x0b\r
 };\r
 \r
-//\r
-// Array Size macro\r
-//\r
-#ifndef ARRAY_SIZE\r
-#define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0]))\r
-#endif\r
-\r
 //\r
 // Type definitions\r
 //\r
@@ -396,6 +389,11 @@ Returns:
                   NULL);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
+  //\r
+  // Dispatch deferred images after EndOfDxe event and ReadyToLock installation.\r
+  //\r
+  EfiBootManagerDispatchDeferredImages ();\r
+\r
   PlatformInitializeConsole (gPlatformConsole);\r
   PcdStatus = PcdSet16S (PcdPlatformBootTimeOut,\r
                 GetFrontPageTimeoutFromQemu ());\r
@@ -1442,7 +1440,7 @@ Routine Description:
   // Get current Boot Mode\r
   //\r
   BootMode = GetBootModeHob ();\r
-  DEBUG ((EFI_D_ERROR, "Boot Mode:%x\n", BootMode));\r
+  DEBUG ((DEBUG_INFO, "Boot Mode:%x\n", BootMode));\r
 \r
   //\r
   // Go the different platform policy with different boot mode\r