Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@cygnus.com>
To: Cary Coutant <cary@cup.hp.com>
Cc: "Matthew Wilcox" <Matthew.Wilcox@genedata.com>,
	<parisc-linux@thepuffingroup.com>
Subject: Re: [parisc-linux] sigsetreturn (was utssys?)
Date: 17 Aug 1999 12:54:24 -0700	[thread overview]
Message-ID: <m3so5iw5cf.fsf@localhost.localnet> (raw)
In-Reply-To: Cary Coutant's message of "Tue, 17 Aug 1999 12:20:07 -0700"

Cary Coutant <cary@cup.hp.com> writes:

> Since the normal BV instruction used for returns can't branch across
> space boundaries, the signal handler can't return directly to kernel
> space, so the kernel needs to supply a return address in user space
> that will implement the restoration of the interrupted context. This
> return address is the sigreturn() system call, found in libc. In
> order for the kernel to know the address of sigreturn, it needs to
> be told in advance; that's what sigsetreturn() does.

This is what Linux uses the sa_restorer in `struct sigaction' for.  I
think it's a better interface then sigsetreturn() so consider
implementing it this way and not provide sigsetreturn.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

  reply	other threads:[~1999-08-17 19:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-17 19:20 [parisc-linux] sigsetreturn (was utssys?) Cary Coutant
1999-08-17 19:54 ` Ulrich Drepper [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-08-17 21:46 Cary Coutant

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=m3so5iw5cf.fsf@localhost.localnet \
    --to=drepper@cygnus.com \
    --cc=Matthew.Wilcox@genedata.com \
    --cc=cary@cup.hp.com \
    --cc=parisc-linux@thepuffingroup.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