All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] invalid use of FPU in Xenomai context
@ 2006-09-14 22:47 Jeff Webb
  2006-09-15  8:25 ` Philippe Gerum
  2006-09-15  9:12 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 13+ messages in thread
From: Jeff Webb @ 2006-09-14 22:47 UTC (permalink / raw)
  To: Xenomai help

I made some more progress in porting my RTLinux application, but now I'm spinning my wheels trying to track down the source of the following error:

  "invalid use of FPU in Xenomai context at ..."

I am doing floating point calculations inside a real-time POSIX thread in kernel-space.  I am puzzled because I can create a simple test program that uses floating point operations in a real-time thread without any errors.  I create the task with something like this:

      pthread_attr_init(&attr);
      pthread_attr_setfp_np(&attr, 1);
      result = pthread_create(&fptest_task, &attr, &fptest_routine, NULL);

In fact, it seems that the fp attribute is already 1 by default, because I get no floating point errors if I leave out the pthread_attr_setfp_np line.  I do get an error if I do this:

  pthread_attr_setfp_np(&attr, 0);

I am doing the same thing in my much more complicated real-time application.  In fact, I can even insert a loop with some floating-point code at the beginning of my thread, and it works fine.  The problem is that something in my application code is triggering the "invalid use of FPU" error.

Does anyone have any ideas of what could trigger this besides not setting the fp attribute for the thread?

Thanks,

Jeff


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <450B2BE1.1050105@domain.hid>]

end of thread, other threads:[~2006-10-27 16:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14 22:47 [Xenomai-help] invalid use of FPU in Xenomai context Jeff Webb
2006-09-15  8:25 ` Philippe Gerum
2006-09-15 14:39   ` Jeff Webb
2006-09-15  9:12 ` Gilles Chanteperdrix
2006-09-15 14:43   ` Jeff Webb
     [not found]     ` <17674.48814.824895.814925@domain.hid>
2006-09-15 20:33       ` Jeff Webb
     [not found] <450B2BE1.1050105@domain.hid>
2006-09-16  4:38 ` Fw: [Fwd: Re: [Xenomai-help] invalid use of FPU in Xenomai context] Jeff Webb
2006-09-18 20:40   ` [Xenomai-help] invalid use of FPU in Xenomai context Jeff Webb
2006-09-18 21:23     ` Philippe Gerum
2006-10-25 20:00       ` Jeff Webb
2006-10-25 20:24         ` Jan Kiszka
2006-10-25 20:43           ` Jeff Webb
2006-10-25 23:37           ` Jeff Webb
2006-10-27 16:30             ` Jeff Webb

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.