From: Philippe Gerum <rpm@xenomai.org>
To: Norbert Bukuli <norbert.bukuli@mediso.hu>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Floating point operations in kernel on powerpc
Date: Wed, 13 Feb 2013 18:15:42 +0100 [thread overview]
Message-ID: <511BCA3E.4050705@xenomai.org> (raw)
In-Reply-To: <511BB60E.7090900@mediso.hu>
On 02/13/2013 04:49 PM, Norbert Bukuli wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear Mr Gerum,
>
> thank you for your kind answer.
> As you can see in the example code I do not call explicitly either
> _savefpr_XX or rthal_save_fpu and their restore counterparts. I only
> do some floating point operations in a Xenomai domain kernel thread.
> However the linker misses the routines mentioned earlier.
> Are there linker flags to change this behaviour?
> One important note, in the kernel configuration the hardware FPU
> support is switched on. (CONFIG_XENO_HW_FPU=y)
-msoft-float with hw FPU looks suspicious. I don't understand why you
mention C runtime libraries when building kernel modules either.
Building with eldk 5.2.1 for fpu-enabled 6xx cores can be done with
eldk-5.2.1/powerpc/sysroots/i686-eldk-linux/usr/bin/powerpc-linux/powerpc-linux-gcc
from a stock eldk install.
Actually, running fpu code in kernel space is a bad idea in the first
place. Xenomai supports this for desperate situations when porting relic
code absolutely requires it, but this is clearly something that should
be avoided. You should really consider moving all that stuff to userland
if the situation is not that desperate.
--
Philippe.
next prev parent reply other threads:[~2013-02-13 17:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-13 13:28 [Xenomai] Floating point operations in kernel on powerpc Norbert Bukuli
2013-02-13 13:45 ` Philippe Gerum
2013-02-13 15:49 ` Norbert Bukuli
2013-02-13 17:15 ` Philippe Gerum [this message]
2013-02-14 7:56 ` Norbert Bukuli
2013-02-14 15:28 ` Norbert Bukuli
2013-02-14 19:27 ` Gilles Chanteperdrix
2013-02-15 12:21 ` Philippe Gerum
2013-02-15 13:31 ` Norbert Bukuli
2013-02-15 14:51 ` Philippe Gerum
2013-02-15 15:24 ` Norbert Bukuli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=511BCA3E.4050705@xenomai.org \
--to=rpm@xenomai.org \
--cc=norbert.bukuli@mediso.hu \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.