public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: Steven Munroe <munroesj@linux.vnet.ibm.com>
To: "Joseph S. Myers" <joseph@codesourcery.com>
Cc: libc-alpha@sourceware.org, libc-ports@sourceware.org,
	       "Ryan S. Arnold" <ryan.arnold@gmail.com>
Subject: Re: e500 port: getcontext / setcontext / swapcontext
Date: Wed, 18 Sep 2013 18:25:00 -0000	[thread overview]
Message-ID: <1379528954.4899.19.camel@spokane1.rchland.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1309181728150.1868@digraph.polyomino.org.uk>

On Wed, 2013-09-18 at 17:29 +0000, Joseph S. Myers wrote:
> This patch adds e500 support to powerpc getcontext / setcontext /
> swapcontext.  Like setjmp/longjmp, it's compile-time conditional
> rather than using HWCAPs.  Unlike setjmp/longjmp, this is following an
> external ABI: the context layout used by the Linux kernel.  Nothing is
> done about the ACC register; as it's call-clobbered and not used for
> argument passing, only the signal context case needs to handle it and
> that does it via a syscall.  (But as is generally usual for context
> code in glibc, this code doesn't otherwise try to limit GPR saving /
> restoring to avoid call-clobbered registers for which it isn't
> actually needed.)
> 
> To avoid duplication of the code sequences between getcontext /
> setcontext and swapcontext, they are put in assembler macros defined
> in a single place, and those macros are then used as needed under the
> __CONTEXT_ENABLE_E500 conditional.
> 

Joseph I must really question the wisdom of merging the e500 into the
same source with the "classical" PPC32 code. 

The unified GPR/FPR set of the e500 impacts the ABI in many different
ways from the classic PPC32 soft-float or hard-float that I fear this
will be a constant source of misunderstanding and error in the future.

I am much more comfortable keeping the e500 specific codes in different
source files and different parts of the tree.


  reply	other threads:[~2013-09-18 18:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-18 17:29 Joseph S. Myers
2013-09-18 18:25 ` Steven Munroe [this message]
2013-09-18 19:33   ` Joseph S. Myers
2013-09-19 15:52 ` Ryan S. Arnold
2013-09-26 15:39   ` Joseph S. Myers

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=1379528954.4899.19.camel@spokane1.rchland.ibm.com \
    --to=munroesj@linux.vnet.ibm.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=libc-ports@sourceware.org \
    --cc=munroesj@us.ibm.com \
    --cc=ryan.arnold@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).