All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH]: grub: Fix sparc64 setjmp implementation, update grub_setjmp() attributes.
Date: Sat, 28 Mar 2009 23:34:25 +0900	[thread overview]
Message-ID: <200903282334.25339.okuji@enbug.org> (raw)
In-Reply-To: <20090328133948.GE8493@thorin>

On Saturday 28 March 2009 22:39:48 Robert Millan wrote:
> On Wed, Mar 25, 2009 at 09:13:52PM -0700, David Miller wrote:
> > The FSF has received my copyright assignment paperwork so I'm starting
> > to feed fresh copies of my sparc64 changes.
> >
> > Here, we fix the setjmp assembler implementation for sparc64 and also
> > we fix all of the grub_setjmp declarations to have the proper
> > "returns_twice" attribute.
> >
> > For normal "setjmp" GCC recognizes this special function name and
> > internally adds the attribute.  Amongst other things this makes sure
> > GCC does not emit a tail-call in functions that call grub_setjmp().
> > Since we use a special name for setjmp in GRUB we need to explicitly
> > add the attribute.
> >
> > Without this fix, GCC on sparc64 really did emit a tail-call in the
> > nomal module where grub_setjmp() is called, and this led to myserious
> > crashes :-)
> >
> > 2009-03-25  David S. Miller  <davem@davemloft.net>
> >
> > 	* normal/sparc64/setjmp.S: Fix setjmp implementation.
> > 	* include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
> > 	(grub_setjmp): Mark with 'returns_twice' attribute.
> > 	* include/grub/i386/setjmp.h (grub_setjmp): Likewise
> > 	* include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
> > 	* include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
>
> Hi,
>
> Unless there's someone else in the list who is knowledgeable about sparc
> assembly and is going to review this part of David's patch, I'm going to
> assume it's fine and check it in.
>
> This also goes for future patches sent by David.  So if you will speak,
> do it now :-)

I know a bit, but not that much. So I vote for that we just trust him. ;)

Regards,
Okuji



  reply	other threads:[~2009-03-28 14:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-26  4:13 [PATCH]: grub: Fix sparc64 setjmp implementation, update grub_setjmp() attributes David Miller
2009-03-28 13:39 ` Robert Millan
2009-03-28 14:34   ` Yoshinori K. Okuji [this message]
2009-04-01  8:17     ` David Miller
2009-04-01 13:01       ` Robert Millan
2009-04-01 13:59         ` Yoshinori K. Okuji
2009-04-01 21:16           ` David Miller
2009-04-01 21:16         ` David Miller

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=200903282334.25339.okuji@enbug.org \
    --to=okuji@enbug.org \
    --cc=grub-devel@gnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.