From owner-freebsd-threads@FreeBSD.ORG Tue May 6 06:13:26 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AE1037B401; Tue, 6 May 2003 06:13:26 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B632543FD7; Tue, 6 May 2003 06:13:25 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from pcnet1.pcnet.com (localhost [127.0.0.1]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h46DDKBg011962; Tue, 6 May 2003 09:13:20 -0400 (EDT) Received: from localhost (eischen@localhost)h46DDJpd011959; Tue, 6 May 2003 09:13:19 -0400 (EDT) Date: Tue, 6 May 2003 09:13:19 -0400 (EDT) From: Daniel Eischen To: Julian Elischer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: David Xu Subject: Re: kern_threads.c.. upcall question.. X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2003 13:13:26 -0000 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