From owner-freebsd-hackers Tue May 28 09:13:53 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA10585 for hackers-outgoing; Tue, 28 May 1996 09:13:53 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA10558 for ; Tue, 28 May 1996 09:13:51 -0700 (PDT) Received: from MindBender.HeadCandy.com (root@[199.238.225.168]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id IAA05388 for ; Tue, 28 May 1996 08:04:40 -0700 Received: from localhost.HeadCandy.com (michaelv@localhost.HeadCandy.com [127.0.0.1]) by MindBender.HeadCandy.com (8.7.5/8.6.9) with SMTP id IAA07790; Tue, 28 May 1996 08:04:27 -0700 (PDT) Message-Id: <199605281504.IAA07790@MindBender.HeadCandy.com> X-Authentication-Warning: MindBender.HeadCandy.com: Host michaelv@localhost.HeadCandy.com [127.0.0.1] didn't use HELO protocol To: Alexander Seth Jones cc: hackers@freefall.freebsd.org Subject: Re: using floating point arithmetic inside a device driver In-reply-to: Your message of Tue, 28 May 96 09:37:03 -0400. <31AB017F.1EE1@ctron.com> Date: Tue, 28 May 1996 08:04:27 -0700 From: "Michael L. VanLoon -- HeadCandy.com" Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I'm writing a device driver which needs to do some floating point >calculations, but when the floating point code executes the kernel traps >with number 22 "FPU device not available". I'm have an AMD 486DX4-120. >I'm not concerned with portability at this time (ie running on SX's). > Would someone care to explain what's going on? Do you have the npx (numeric processor exception?) device configured into your kernel? You'll need it for floating point. This is NetBSD config syntax, but FreeBSD should be pretty similar: # Math coprocessor/emulation support: npx0 at isa? port 0xf0 irq 13 # math coprocessor (If you already have this, then I don't have an answer...) ----------------------------------------------------------------------------- Michael L. VanLoon michaelv@HeadCandy.com --< Free your mind and your machine -- NetBSD free un*x >-- NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3, Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32... NetBSD ports in progress: PICA, others... Roll your own Internet access -- Seattle People's Internet cooperative. If you're in the Seattle area, ask me how. -----------------------------------------------------------------------------