]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/Main.c
EmbeddedPkg/Ebl: Check if gST->ConOut has been initialized
[mirror_edk2.git] / EmbeddedPkg / Ebl / Main.c
index 1f677bcb041b6ac4a32af994602903bb89447e6f..3d618419e673dde48026be071cd1f2aca69fe876 100644 (file)
@@ -604,6 +604,11 @@ EdkBootLoaderEntry (
   EblInitializeNetworkCmd();\r
   EblInitializeVariableCmds ();\r
   \r
+  if (gST->ConOut == NULL) {\r
+    DEBUG((EFI_D_ERROR,"Errot: No Console Output\n"));\r
+    return EFI_NOT_READY;\r
+  }\r
+\r
   // Disable the 5 minute EFI watchdog time so we don't get automatically reset\r
   gBS->SetWatchdogTimer (0, 0, 0, NULL);\r
 \r