public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Liming" <liming.gao@intel.com>
To: David F. <df7729@gmail.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: StartImage() return value an error or return code ?
Date: Thu, 14 Sep 2017 02:16:02 +0000	[thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E14E71B@SHSMSX152.ccr.corp.intel.com> (raw)
In-Reply-To: <CAGRSmLts3AOSVoYkH69ayc-BRrpkZ=tMdV986hvjfkZPnDBQng@mail.gmail.com>

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

      reply	other threads:[~2017-09-14  2:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14E14E71B@SHSMSX152.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox