From owner-freebsd-current Wed Jun 10 23:08:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA29873 for freebsd-current-outgoing; Wed, 10 Jun 1998 23:08:36 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles69.castles.com [208.214.165.69]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA29867 for ; Wed, 10 Jun 1998 23:08:33 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id WAA00904; Wed, 10 Jun 1998 22:03:50 -0700 (PDT) Message-Id: <199806110503.WAA00904@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Luigi Rizzo cc: current@FreeBSD.ORG Subject: Re: floating point usage within the kernel - howto ? In-reply-to: Your message of "Wed, 10 Jun 1998 14:39:03 +0200." <199806101239.OAA19796@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 Jun 1998 22:03:49 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > a local user has a need to do some Floating Point computations within > the kernel. I think this is not possible without explicitly > saving&restoring the FP register around the task, is this correct ? > And if this is true, is there any trick/asm routine to call to do the > saving & restoring of the registers ? The simple answer is "don't do it". You might try '-msoft-float' as a compiler option, but it'd be better just to come up with a fixed-point or manually-coded floating point implementation. What do they want to do FP in the kernel for anyway? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message