From owner-freebsd-hackers Thu Dec 11 17:59:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA04188 for hackers-outgoing; Thu, 11 Dec 1997 17:59:55 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA04181 for ; Thu, 11 Dec 1997 17:59:48 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id RAA25268; Thu, 11 Dec 1997 17:59:39 -0800 (PST) Message-ID: <19971211175938.41550@hydrogen.nike.efn.org> Date: Thu, 11 Dec 1997 17:59:38 -0800 From: John-Mark Gurney To: Mike Smith Cc: ETX-B-SL Martti Kuparinen , freebsd-hackers@FreeBSD.ORG Subject: Re: panic: npxintr from nowhere References: <19971211173046.63648@hydrogen.nike.efn.org> <199712120143.MAA00288@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199712120143.MAA00288@word.smith.net.au>; from Mike Smith on Fri, Dec 12, 1997 at 12:13:18PM +1030 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Mike Smith scribbled this message on Dec 12: > > actually, now that someone else brought it up, any good way to call > > floating point routins from the kernel? if you do, and don't have > > any processes that have used floating point, will will get the above > > mentioned panic... > > Hmm, interesting. I would guess that this means that you shouldn't run > floating point code in the kernel. :) yeh... well, I was going to improve the fade screen saver so that it wouldn't turn everything to a dull grey... also, if I remeber correctly, there are only two places in the kernel that use floating point... one of them is in the Bt848 driver... > Think about it for a moment; to whom would you deliver a floating-point > exception? > > It probably fails because the FPU initialisation is lazy, and if you > haven't initialised it before you use it, you'll die screaming. is there a routine for the kernel code to use to initalize it? -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD