From owner-freebsd-arch Thu Jan 10 11:39: 6 2002 Delivered-To: freebsd-arch@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 7B17637B404 for ; Thu, 10 Jan 2002 11:39:04 -0800 (PST) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.12.1/8.12.1) id g0AJbuCO014709; Thu, 10 Jan 2002 14:37:56 -0500 (EST) Date: Thu, 10 Jan 2002 14:37:56 -0500 (EST) From: Daniel Eischen To: Terry Lambert Cc: Dan Eischen , Peter Wemm , Nate Williams , Archie Cobbs , Alfred Perlstein , arch@FreeBSD.ORG Subject: Re: Request for review: getcontext, setcontext, etc In-Reply-To: <3C3DE891.99C85D24@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 10 Jan 2002, Terry Lambert wrote: > Dan Eischen wrote: > > I think we determined that the only time we care about the FP state is > > when sending a signal. In that case, the kernel should know how to > > get the FPU state and copy it out to the context. If there are > > different FPU formats, there is a flags word that can be set accordingly > > and the userland setcontext() can be made to account for different > > floating point formats. > > > > Currently the kernel doesn't save the FPU state in the sigcontext, > > but it should. Wouldn't this solve the problem? > > What problem? > > Using FP code in signal handlers isn't legal. Why does everyone > want to do Bezier curves in signal handlers? It's not so you can do FP in signal handlers. You have to be able to resume the context passed to the signal handler at a later point in time. You are allowed to resume any context you want from the signal handler, but when you finally resume the context that was interrupted by the signal, then the FPU state had better be in the context. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message