EmbeddedPkg/Ebl: Check if gST->ConOut has been initialized

An exception error occured in EBL when gST->ConOut had not been intialized.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11954 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin 2011-07-01 14:37:16 +00:00
parent 64e03133cc
commit d60b4c43c1
1 changed files with 5 additions and 0 deletions

View File

@ -604,6 +604,11 @@ EdkBootLoaderEntry (
EblInitializeNetworkCmd();
EblInitializeVariableCmds ();
if (gST->ConOut == NULL) {
DEBUG((EFI_D_ERROR,"Errot: No Console Output\n"));
return EFI_NOT_READY;
}
// Disable the 5 minute EFI watchdog time so we don't get automatically reset
gBS->SetWatchdogTimer (0, 0, 0, NULL);