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 14:45:37 +0100 [thread overview]
Message-ID: <511B9901.7040104@xenomai.org> (raw)
In-Reply-To: <511B94E4.2070708@mediso.hu>
On 02/13/2013 02:28 PM, Norbert Bukuli wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear List Members,
>
> First of all, this will be a newbie question, sorry for it.
> Shortly, I have to port an old RTAI based kernelspace application to
> Xenomai userpace. This application uses FPU so we compile it hard
> float support. First step of the porting is switching the real-time
> extension. I am done with this, however I have some compilation warnings:
> WARNING: "_restfpr_22_x" [app.ko] undefined!
> WARNING: "_restfpr_29_x" [app.ko] undefined!
> WARNING: "_savefpr_22" [app.ko] undefined!
> WARNING: "_savefpr_29" [app.ko] undefined!
>
> I reproduced these warnings with the following example kernel module:
> http://pastebin.com/AAehcivx
>
> The corresponding Kbuild is:
>
> obj-m := fpu_test.o
> ccflags-y += -Iinclude/xenomai -Iinclude/xenomai/posix -mhard-float
>
> As I see, the missing functions should be in the C runtime library,
> however the kernel library (arch/powerpc/lib/crtsavres.S) contains
> only save/restore macros for general purpose registers. On the other
> hand, the Xenomai extensions provides kernelspace FPU facility and the
> T_FPU flag was turned on rt_task_create().
> So, my question is, how can I eliminate this problem?
>
Xenomai's context switching code does the necessary housekeeping to
save/restore fprs. You don't have to call these routines.
--
Philippe.
next prev parent reply other threads:[~2013-02-13 13:45 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 [this message]
2013-02-13 15:49 ` Norbert Bukuli
2013-02-13 17:15 ` Philippe Gerum
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=511B9901.7040104@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.