All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Rodrigo Rosenfeld Rosas <lbocseg@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] FPU not available in user-space programs
Date: Thu, 6 Jul 2006 13:33:26 +0200	[thread overview]
Message-ID: <17580.62726.293737.991643@domain.hid> (raw)
In-Reply-To: <44AC8482.6000902@domain.hid>

Rodrigo Rosenfeld Rosas wrote:
 > Hi,
 > 
 > I was looking at /proc/xenomai/faults and noticed that the only errors 
 > were on TRAP 7 (FPU not available).
 > 
 > Each time I run the user-space program using the native skin, I 
 > increment the fault by one. I don't understand why this happens. From 
 > documentation, FPU should be enabled automatically for user-space programs.
 > 
 > Any ideas why I'm getting this error and what does it mean? Should I do 
 > some float-point operation before creating my real-time tasks?

This fault is not an error, it happens when a task use the FPU for the
first time in primary mode. When in secondary mode, such an FPU fault
happens every time the FPU is used after a context switch, you simply do
not know about it because it is not accounted for.

-- 


					    Gilles Chanteperdrix.


  parent reply	other threads:[~2006-07-06 11:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06  3:33 [Xenomai-help] FPU not available in user-space programs Rodrigo Rosenfeld Rosas
2006-07-06  7:13 ` Jan Kiszka
2006-07-06 11:33 ` Gilles Chanteperdrix [this message]
2006-07-06 16:45   ` Rodrigo Rosenfeld Rosas
2006-07-07  0:12     ` Gilles Chanteperdrix
2006-07-10  2:16       ` [Xenomai-help] FPU not available in user-space programs [Doxygen] Rodrigo Rosenfeld Rosas

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=17580.62726.293737.991643@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=lbocseg@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.