diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-01 14:37:16 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-01 14:37:16 +0000 |
commit | d60b4c43c194c905a51942f95c6b2937b9f7682e (patch) | |
tree | 020874fcc7e77d1c96674592f8ca7390ac8d69ba | |
parent | 64e03133cc76cd6d55e3b21e010abb0b232bd504 (diff) | |
download | edk2-d60b4c43c194c905a51942f95c6b2937b9f7682e.tar.gz edk2-d60b4c43c194c905a51942f95c6b2937b9f7682e.tar.bz2 edk2-d60b4c43c194c905a51942f95c6b2937b9f7682e.zip |
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
-rw-r--r-- | EmbeddedPkg/Ebl/Main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/EmbeddedPkg/Ebl/Main.c b/EmbeddedPkg/Ebl/Main.c index 1f677bcb04..3d618419e6 100644 --- a/EmbeddedPkg/Ebl/Main.c +++ b/EmbeddedPkg/Ebl/Main.c @@ -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);
|