public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* StartImage() return value an error or return code ?
@ 2017-09-08  6:53 David F.
       [not found] ` <4A89E2EF3DFEDB4C8BFDE51014F606A14E139ACD@SHSMSX104.ccr.corp.intel.com>
  0 siblings, 1 reply; 3+ messages in thread
From: David F. @ 2017-09-08  6:53 UTC (permalink / raw)
  To: edk2-devel

Hi,

Is there a way to tell if the return code from StartImage() is
actually an error from StartImage() vs the exit code of some
application (generic application that may return an error code value
but not set exitdata).    It would seem to conflict with
EFI_INVALID_PARAMETER and EFI_SECURITY_VIOLATION  so where actual
value came from is unknown?

TIA!!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: StartImage() return value an error or return code ?
       [not found] ` <4A89E2EF3DFEDB4C8BFDE51014F606A14E139ACD@SHSMSX104.ccr.corp.intel.com>
@ 2017-09-13  4:06   ` David F.
  2017-09-14  2:16     ` Gao, Liming
  0 siblings, 1 reply; 3+ messages in thread
From: David F. @ 2017-09-13  4:06 UTC (permalink / raw)
  To: Gao, Liming; +Cc: edk2-devel@lists.01.org

But what if you're running some unknown app that you don't know the
return code format in the ExitData?  It seems to just read that the
ExitData will be some text followed by some binary data.

On Mon, Sep 11, 2017 at 12:43 AM, Gao, Liming <liming.gao@intel.com> wrote:
> Per UEFI spec, StartImage() has the optional output ExitData. If ExitData is not NULL, the exit status will be from the image.
>
>>-----Original Message-----
>>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
>>David F.
>>Sent: Friday, September 08, 2017 2:53 PM
>>To: edk2-devel@lists.01.org
>>Subject: [edk2] StartImage() return value an error or return code ?
>>
>>Hi,
>>
>>Is there a way to tell if the return code from StartImage() is
>>actually an error from StartImage() vs the exit code of some
>>application (generic application that may return an error code value
>>but not set exitdata).    It would seem to conflict with
>>EFI_INVALID_PARAMETER and EFI_SECURITY_VIOLATION  so where actual
>>value came from is unknown?
>>
>>TIA!!
>>_______________________________________________
>>edk2-devel mailing list
>>edk2-devel@lists.01.org
>>https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: StartImage() return value an error or return code ?
  2017-09-13  4:06   ` David F.
@ 2017-09-14  2:16     ` Gao, Liming
  0 siblings, 0 replies; 3+ messages in thread
From: Gao, Liming @ 2017-09-14  2:16 UTC (permalink / raw)
  To: David F.; +Cc: edk2-devel@lists.01.org

Right. UEFI spec defines ExitData format that null terminated string + optional binary data. 

> -----Original Message-----
> From: David F. [mailto:df7729@gmail.com]
> Sent: Wednesday, September 13, 2017 12:07 PM
> To: Gao, Liming <liming.gao@intel.com>
> Cc: edk2-devel@lists.01.org
> Subject: Re: [edk2] StartImage() return value an error or return code ?
> 
> But what if you're running some unknown app that you don't know the
> return code format in the ExitData?  It seems to just read that the
> ExitData will be some text followed by some binary data.
> 
> On Mon, Sep 11, 2017 at 12:43 AM, Gao, Liming <liming.gao@intel.com> wrote:
> > Per UEFI spec, StartImage() has the optional output ExitData. If ExitData is not NULL, the exit status will be from the image.
> >
> >>-----Original Message-----
> >>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> >>David F.
> >>Sent: Friday, September 08, 2017 2:53 PM
> >>To: edk2-devel@lists.01.org
> >>Subject: [edk2] StartImage() return value an error or return code ?
> >>
> >>Hi,
> >>
> >>Is there a way to tell if the return code from StartImage() is
> >>actually an error from StartImage() vs the exit code of some
> >>application (generic application that may return an error code value
> >>but not set exitdata).    It would seem to conflict with
> >>EFI_INVALID_PARAMETER and EFI_SECURITY_VIOLATION  so where actual
> >>value came from is unknown?
> >>
> >>TIA!!
> >>_______________________________________________
> >>edk2-devel mailing list
> >>edk2-devel@lists.01.org
> >>https://lists.01.org/mailman/listinfo/edk2-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-14  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-08  6:53 StartImage() return value an error or return code ? David F.
     [not found] ` <4A89E2EF3DFEDB4C8BFDE51014F606A14E139ACD@SHSMSX104.ccr.corp.intel.com>
2017-09-13  4:06   ` David F.
2017-09-14  2:16     ` Gao, Liming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox