public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
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 22:24:27 +0000	[thread overview]
Message-ID: <marc-linux-ia64-106677568627771@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106669369711349@msgid-missing>

>>>>> On Tue, 21 Oct 2003 14:57:50 -0700, Cary Coutant <cary@cup.hp.com> said:

  >> 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.

  Cary> Do you know of any such applications?

I don't know of _any_ mixed-endian-mode applications for ia64 linux.
It has come up now and then, but I have never seen a strong demand for
it.  That's sort of my point: if you want to do mixed-endian-mode, you
(probably) can do it, but you're pretty much on your own.  It's not
just the kernel, but gdb, libunwind, etc. etc. all of which may or may
not react the "right" way when encountering big-endian data.

  Cary> How likely is it that someone would code an application in
  Cary> such a way that they guarantee that a certain signal will
  Cary> occur only when executing in big-endian mode? (And,
  Cary> conversely, that other signals will occur only when executing
  Cary> in little-endian mode?)

I can certainly imagine an application that switches into big-endian
mode completely before installing any signal handlers.

  Cary> By the way, when you arm the signal handler, do you copy the
  Cary> function pointer or the function descriptor? Will the
  Cary> user-space code that makes the call to the signal handler work
  Cary> if you're in big-endian mode?

We copy the pointer and then dereference it in user-mode (in the trampoline).

Perhaps you misunderstand what I'm saying: I'm not religiously opposed
to making a change in this area, but I'm not going to change it on a
whim.  If someone is serious about supporting mixed-endian-mode
applications, they'll have to put some time into it and at least
answer what happens, e.g., to gdb, etc.

	--david

      parent reply	other threads:[~2003-10-21 22:24 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
2003-10-21 21:57 ` Cary Coutant
2003-10-21 22:24 ` David Mosberger [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=marc-linux-ia64-106677568627771@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox