From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC] Endianness and signals
Date: Tue, 21 Oct 2003 20:56:49 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106677006020854@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106669369711349@msgid-missing>
>>>>> On Tue, 21 Oct 2003 13:37:00 -0700, Cary Coutant <cary@cup.hp.com> said:
Cary> I think the right thing to do is set the PSR.be bit on
Cary> delivery of a signal to match (elf_header.e_flags &
Cary> EF_IA_64_BE).
The kernel does not support the loading of big-endian executables, so
this would be equivalent to always clearing PSR.be on a signal.
Cary> I'm not sure I buy the argument that you shouldn't change the
Cary> behavior now because it's been that way for a long time. What
Cary> you have now is unpredictable, so the only ways a signal
Cary> handler could work in an application that switches the PSR.be
Cary> bit on a regular basis are: (1) it just gets lucky, and never
Cary> gets an interrupt while in the wrong state, (2) the
Cary> application blocks signals while in the opposite state, or (3)
Cary> the signal handler forces the PSR.be to what it wants. In any
Cary> of these cases, the proposed behavior will work.
The fourth case is that the application has signal handlers that
expect to get called in the "opposite" byte-order and those are the
ones that would break if we changed the current behavior.
--david
next prev parent reply other threads:[~2003-10-21 20:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-20 23:42 [RFC] Endianness and signals R. Lake
2003-10-21 0:10 ` David Mosberger
2003-10-21 20:37 ` Cary Coutant
2003-10-21 20:56 ` David Mosberger [this message]
2003-10-21 21:57 ` Cary Coutant
2003-10-21 22:24 ` David Mosberger
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=marc-linux-ia64-106677006020854@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@vger.kernel.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.