Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 1998 22:03:49 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        current@FreeBSD.ORG
Subject:   Re: floating point usage within the kernel - howto ? 
Message-ID:  <199806110503.WAA00904@antipodes.cdrom.com>
In-Reply-To: Your message of "Wed, 10 Jun 1998 14:39:03 %2B0200." <199806101239.OAA19796@labinfo.iet.unipi.it> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806110503.WAA00904>