* [Xenomai-help] AT91RM9200 Real-time kernel canot use float
@ 2008-03-15 0:21 ` 06121777
2008-03-18 10:00 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: 06121777 @ 2008-03-15 0:21 UTC (permalink / raw)
To: xenomai-help
[-- Attachment #1: Type: text/plain, Size: 113 bytes --]
anybody think about it ? I want to use float in real time kernel,my board is AT91RM9200
06121777
2008-03-15
[-- Attachment #2: Type: text/html, Size: 614 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] AT91RM9200 Real-time kernel canot use float
2008-03-15 0:21 ` 06121777
@ 2008-03-18 10:00 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2008-03-18 10:00 UTC (permalink / raw)
To: 06121777; +Cc: xenomai-help
On Sat, Mar 15, 2008 at 1:21 AM, 06121777 <06121777@domain.hid> wrote:
>
>
> anybody think about it ? I want to use float in real time kernel,my board
> is AT91RM9200
Using soft-float in kernel-space is usually considered a bad idea. But
if you still want to do it, read on.
First, you have to realize that an AT91RM9200 has no FPU, so you have
to use soft float (which means compiling with -msoft-float), which is
slow. Since you are talking about kernel space, you do not have to
change the compilation flags, since the kernel is already compiled
with -msoft-float. At the end of the compilation you will get
undefined symbols, to resolve these symbols, you may extract them from
your compiler libgcc. But be careful to only use symbols that do not
use user-space services (for instance, the function called in case of
division by 0, called _div0 or something like this, uses abort, so you
should implement your own _div0).
--
Gilles Chanteperdrix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-18 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-15 0:21 [Xenomai-help] AT91RM9200 Real-time kernel canot use float 06121777
2008-03-15 0:21 ` 06121777
2008-03-18 10:00 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.