From: Ivan Gorinov <ivan.gorinov@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] x86: use EFI calling convention for efi_main on x86_64
Date: Thu, 31 May 2018 11:52:48 -0700 [thread overview]
Message-ID: <20180531185248.GA18328@intel.com> (raw)
In-Reply-To: <CAHp75VdKdiFRLc8_p23yqTyfrmW0Uvx59EgousZhSP1xAueQ=g@mail.gmail.com>
On Thu, May 31, 2018 at 11:26:50AM +0300, Andy Shevchenko wrote:
> > Save efi_main() arguments in the startup code on x86_64;
> > use EFI calling convention for _relocate() on x86_64;
> > remove unused _relocate() arguments;
> > consistently use EFI calling convention for efi_main() everywhere.
>
> I think it rather requires more explanation here what EFI calling
> convetion is and how it differs in _relloc() with changes you did.
> (Btw, the mail has no changelog provided)
Added in v3.
> > diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c
> > index c828093..3eb8eeb 100644
> > --- a/lib/efi/efi_app.c
> > +++ b/lib/efi/efi_app.c
> > @@ -96,7 +96,8 @@ static void free_memory(struct efi_priv *priv)
> > * U-Boot. If it returns, EFI will continue. Another way to get back to EFI
> > * is via reset_cpu().
> > */
> > -efi_status_t efi_main(efi_handle_t image, struct efi_system_table *sys_table)
> > +efi_status_t EFIAPI efi_main(efi_handle_t image,
> > + struct efi_system_table *sys_table)
>
> Perhaps still leave at one line?
That one line would exceed the limit of 80 columns on a punch card.
>
> > {
> > struct efi_priv local_priv, *priv = &local_priv;
> > efi_status_t ret;
> > diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
> > index 3138739..399d16b 100644
> > --- a/lib/efi/efi_stub.c
> > +++ b/lib/efi/efi_stub.c
> > @@ -268,7 +268,8 @@ static void add_entry_addr(struct efi_priv *priv, enum efi_entry_t type,
> > * This function is called by our EFI start-up code. It handles running
> > * U-Boot. If it returns, EFI will continue.
> > */
> > -efi_status_t efi_main(efi_handle_t image, struct efi_system_table *sys_table)
> > +efi_status_t EFIAPI efi_main(efi_handle_t image,
> > + struct efi_system_table *sys_table)
>
> Ditto.
prev parent reply other threads:[~2018-05-31 18:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-30 22:31 [U-Boot] [PATCH v2] x86: use EFI calling convention for efi_main on x86_64 Ivan Gorinov
2018-05-31 8:26 ` Andy Shevchenko
2018-05-31 18:52 ` Ivan Gorinov [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-all 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=20180531185248.GA18328@intel.com \
--to=ivan.gorinov@intel.com \
--cc=u-boot@lists.denx.de \
/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