From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] more on setjmp()/longjmp()
Date: Wed, 14 Feb 2001 19:19:07 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005148@msgid-missing> (raw)
A while ago I wrote:
(2) The current setjmp()/longjmp() implementation cannot be used for
stack switching purposes, because it does not preserve ar.rnat.
There was some discussion on what we should do about this and the
conclusion was to fix the routines so they do preserve ar.rnat.
The main argument for changing the routines was that the IA-64
SCRA requires ar.rnat to be part of the jmp_buf.
Well, it turns out the SCRA was not quite clear on this topic:
apparently the _intent_ was not to require a flushrs in setjmp() and
the requirement of saving ar.rnat was indirectly contradicting this
intent. I understand the SCRA is being fixed so that this will be
made clearer (and ar.rnat is no longer mentioned as a register that
must be saved in the jump buffer).
Because of this, I'd like to recommend that we keep the current
setjmp()/longjmp() implementation. The implication of this is that
the routines may not be used for switching stacks. If an application
needs to do this, it should use the *context() routines (which still
need to be implemented...).
Don, could you update the setjmp() TODO list entry accordingly?
Thanks,
--david
reply other threads:[~2001-02-14 19:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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-105590693005148@msgid-missing \
--to=davidm@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