All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cedric Herreman <glocker50@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] 2.6 kernel module with math functions
Date: Fri, 18 Nov 2005 01:07:03 -0800 (PST)	[thread overview]
Message-ID: <20051118090703.57135.qmail@domain.hid> (raw)

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

Hello,
 
 I am porting a 2.4 RTAI kernel module to Xenomai 2.0 kernel 2.6. I used some basic math functions in the original module. This is posing problems for me now.
 
 In the module source i include <math.h>. I add -I/usr/include to the compiler flags and also "-ffast-math -mhard-float".
 
 If i compile this, i get warnings about double definitions of "__attribute_pure__" and "__attribute_used__".
 
 If i insert the kernel module, i get an error message :
 "Xenomai: Invalid use of FPU in Xenomai context at " + probably the address of the instruction where the math function is called.
 
 Can anyone give me a hint ? Thanks.
 
 This is the makefile  :
 
 obj-m    := rt_canio.o
 
 XENODIR = /usr/realtime
 
 KDIR    := /lib/modules/2.6.13.3/build
 PWD    := $(shell pwd)
 
 EXTRA_CFLAGS := -I$(XENODIR)/include -I/usr/include -ffast-math -mhard-float 
 
 all:
     $(MAKE) -C $(KDIR) M=$(PWD) modules
 
 clean:
     $(MAKE) -C $(KDIR) M=$(PWD) clean
 
 

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  

[-- Attachment #2: Type: text/html, Size: 1428 bytes --]

             reply	other threads:[~2005-11-18  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18  9:07 Cedric Herreman [this message]
2005-11-18 13:19 ` [Xenomai-help] 2.6 kernel module with math functions Gilles Chanteperdrix
2005-11-25  9:33   ` Cedric Herreman
2005-11-25  9:39     ` Philippe Gerum
2005-11-27 17:18       ` Gilles Chanteperdrix

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=20051118090703.57135.qmail@domain.hid \
    --to=glocker50@domain.hid \
    --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.