From owner-freebsd-arch Mon Jan 7 17:57:45 2002 Delivered-To: freebsd-arch@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 51AD037B400 for ; Mon, 7 Jan 2002 17:57:43 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id SAA28261; Mon, 7 Jan 2002 18:57:37 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g081vUM02199; Mon, 7 Jan 2002 18:57:31 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15418.20999.801150.255824@caddis.yogotech.com> Date: Mon, 7 Jan 2002 18:57:27 -0700 To: Alfred Perlstein Cc: Nate Williams , Dan Eischen , Peter Wemm , Archie Cobbs , arch@FreeBSD.ORG Subject: Re: Request for review: getcontext, setcontext, etc In-Reply-To: <20020107195545.I18706@elvis.mu.org> References: <20020106232937.9F87D38CC@overcee.netplex.com.au> <3C390746.5FE7648C@vigrid.com> <15417.59947.662052.836634@caddis.yogotech.com> <20020107130208.E18706@elvis.mu.org> <15418.663.130281.835301@caddis.yogotech.com> <20020107185929.H18706@elvis.mu.org> <15418.17708.386130.893862@caddis.yogotech.com> <20020107195545.I18706@elvis.mu.org> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) 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 > > > > > threads. > > > > > > > > > > Is this possible? > > > > > > > > In the future it may be possible, if we keep track of FP-usage on a > > > > thread basis instead of a process basis. This requires kernel threads. > > > > > > No, as I stated above, I don't think this requires kernel threads. > > > > I understand now, thanks. However, I'm not sure how easily this can be > > done. > > All you need is a hook to reset the FP-used bit, any application > that clears the bit incorrectly gets what it deserves. :) That's the easy part. The hard part is setting the 'need-FPU' bit in the process, and making sure to catch the FPU exception, resetting the bit in the thread, then making sure the FPU is retried safely. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message