kern_threads.c.. upcall question..
Daniel Eischen
eischen at pcnet1.pcnet.com
Tue May 6 06:13:26 PDT 2003
On Tue, 6 May 2003, Julian Elischer wrote:
>
> On Tue, 6 May 2003, David Xu wrote:
>
> >
> > > I think this could be optimised even more.
> > > (why copy the FP regs if they are not valid) (etc).
> > > but it is an improvement..
> > >
> >
> > Why need we an intermediate mcontext_t, why not
> > direct copy the context in trap frame to userland space?
> > This should be fastest. :-)
>
> this is what I was thinking..
> get_mcontext_user(td, addr)
> [...]
Don't break validation and setting of FP validity and type.
get_mcontext() knows how to mark the validity of the FPU
set and it's type (387 or SSE). The UTS relies on this
information. Be very careful.
--
Dan Eischen
More information about the freebsd-threads
mailing list