Date: Tue, 6 May 2003 09:13:19 -0400 (EDT) From: Daniel Eischen <eischen@pcnet1.pcnet.com> To: Julian Elischer <julian@elischer.org> Cc: David Xu <davidxu@freebsd.org> Subject: Re: kern_threads.c.. upcall question.. Message-ID: <Pine.GSO.4.10.10305060910120.11430-100000@pcnet1.pcnet.com> In-Reply-To: <Pine.BSF.4.21.0305060026570.4662-100000@InterJet.elischer.org>
index | next in thread | previous in thread | raw e-mail
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 Eischenhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10305060910120.11430-100000>
