Subject: Re: CVS commit: [nathanw_sa] syssrc/sys/arch/m68k
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Steve Woodford <scw@netbsd.org>
List: tech-kern
Date: 11/25/2001 18:13:54
On Sun, 25 Nov 2001, Jason R Thorpe wrote:
> On Sun, Nov 25, 2001 at 12:39:36PM +0200, Steve Woodford wrote:
> > The whole `full fpu state cannot be saved/restored from userland' needs
> > more thought.
> >
> > XXX: _UC_USER really ought to be defined in <sys/ucontext.h> ...
>
> Ugh. This is wrong. _UC_USER is private to libpthread because it's
> performing a libpthread-specific optimization. If you really can't
> implement it correctly in userland, then _getcontext_u(), _setcontext_u(),
> and _swapcontext_u() should probably just aliases for the system calls
> of similar names.
I have a cunning plan which may get things running without resorting to
aliasing the system calls. It'll still need a private flag shared between
the kernel and m68k _*context_u() code though.
Cheers, Steve