Along those same lines, if the support level of 0, 1 or 2, there should be no 
output anyway because it should not be interactive.

From: Sivasakthivel Nainar [mailto:sivasakthiv...@ami.com]
Sent: Friday, October 19, 2012 7:58 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] gST->ConOut is NULL when we launch Shell

ShellPkg Maintainers,
 At the shell entry point,  the following code is there.  When shell is  
launched, all consoles / Con sole splitter should be initialized. So 
gST->ConOut should be initialized by that time.  But due to some problem  ,if  
gST->ConOut is  not initialized,   there may  be a chance of  exception.   It 
would be good  if we check the validity  of gST->ConOut before calling  the 
ClearScreen().



 if (PcdGet8(PcdShellSupportLevel) > 3) {
    return (EFI_UNSUPPORTED);
  }

  //
  // Clear the screen
  //
  Status = gST->ConOut->ClearScreen(gST->ConOut);
  if (EFI_ERROR(Status)) {
    return (Status);


Thanks
Siva


The information contained in this message may be confidential and proprietary 
to American Megatrends, Inc. This communication is intended to be read only by 
the individual or entity to whom it is addressed or by their designee. If the 
reader of this message is not the intended recipient, you are on notice that 
any distribution of this message, in any form, is strictly prohibited. Please 
promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and 
then delete or destroy all copies of the transmission.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to