All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: gfa@sensaco.com
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: setcontext syscall
Date: Thu, 20 Nov 2003 19:02:03 +1100	[thread overview]
Message-ID: <1069315322.31665.197.camel@gaston> (raw)
In-Reply-To: <3FBC6728.7030504@sensaco.com>

On Thu, 2003-11-20 at 18:03, George Fankhauser wrote:
> Hi there!
> 
> I wonder why linux i386 does not implement setcontext as a syscall. 
> Instead it's in in glibc in userspace.

On ppc32, we have started doing just that, a syscall called
sys_swapcontext that does all the variations of get/set_context.
We'll do as well on ppc64 soon.

It also helps perfs because on ppc, the kernel actually knows if
things like the FPU or the Altivec unit were ever used by the
process, and so if it's worth saving/restoring those registers
as part of the context.

Ben.


      reply	other threads:[~2003-11-20  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20  7:03 setcontext syscall George Fankhauser
2003-11-20  8:02 ` Benjamin Herrenschmidt [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=1069315322.31665.197.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=gfa@sensaco.com \
    --cc=linux-kernel@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.