From: Gabriele Moabiti <gabmoa@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] floating point (int 16) exception
Date: Fri, 31 Oct 2008 17:15:37 +0000 (GMT) [thread overview]
Message-ID: <352894.28773.qm@domain.hid> (raw)
In-Reply-To: 490B37D6.8050809@domain.hid
[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]
>No, you do not read the sources correctly. Xenomai does handle FPU
>exception in primary mode. You know, I implemented part of this, so, you
>should not assume that I do not know what I am talking about.
I *REALLY* don't say you don't know what you say
(I ask you 'cause I think you know... :)
ring 3 xenomai task:
void xeno_task(void *cookie)
{
static long loop_count=0;
unsigned int cw=0x360;
/* Unmask all but not precision, the int 7 will be raised */
__asm__ __volatile__("fldcw %0;"::"m"(cw));
for (;;loop_count++) {
rt_task_wait_period(NULL);
rt_printf("Loop number: %ld\n", loop_count);
/* Let's raise an exception #16*/
__asm__ __volatile__(
"fldz;"
"fld1;"
"fdivrp %st(0),%st(1);"
"fwait;"
);
}
}
xnarch_fault_fpu_p is related to int 7 that It manage the TS bit (fpu handling
of save restore only if the task use fpu) and it works, it doesn't switch to secondary
mode as you say.
If I pass to Xenomai the exception 16 of fdivrp the task end 'cause (i thought) the
switch to secondary mode. Sorry if i bug you but i really need a suggestion.
Unisciti alla community di Io fotografo e video, il nuovo corso di fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo
[-- Attachment #2: Type: text/html, Size: 2072 bytes --]
next prev parent reply other threads:[~2008-10-31 17:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-31 16:26 [Xenomai-help] floating point (int 16) exception Gabriele Moabiti
2008-10-31 16:31 ` Gilles Chanteperdrix
2008-10-31 16:47 ` Gabriele Moabiti
2008-10-31 16:52 ` Gilles Chanteperdrix
2008-10-31 17:15 ` Gabriele Moabiti [this message]
2008-10-31 17:20 ` Gilles Chanteperdrix
2008-10-31 18:41 ` Gabriele Moabiti
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=352894.28773.qm@domain.hid \
--to=gabmoa@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.