Floating Point Exceptions in RT-Tasks
Hi,
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
Thanks for your help!
Thomas
Quoted 7 lines · [email protected] wrote:
Hi,
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
An FPU exception triggers a signal, and signal can only be sent to a task running in secondary mode. So, even if we managed to get the signal to be sent to the task immediately, it would cause it to switch to secondary mode. Is it really what you want?
Signature · 1 line
Gilles.
Quoted 9 lines · Gilles Chanteperdrix
Quoted 7 lines · [email protected] wrote:
Hi,
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
Quoted 4 lines
An FPU exception triggers a signal, and signal can only be sent to a task running in secondary mode. So, even if we managed to get the signal to be sent to the task immediately, it would cause it to switch to secondary mode. Is it really what you want?
Actually, this should not happen. Could you send us a test program?
Signature · 1 line
Gilles.
I modified the trivial periodic example. That raises the exception only when I comment in the printf in demo(...). Basically I want to get notified if a floating point exception occurs. We have an automatic code generator which generates protection code for underflow, overflow and division by zero. This adds a lot of overhead to each application (which are very math centric) and suppresses any error. By leaving this code out we want to enable FPE's (only in debug mode) and give the users the ability to test their algorithms against arithmetic exceptions.
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fenv.h>
#include <native/task.h>
#include <native/timer.h>
RT_TASK demo_task;
double z;
/* NOTE: error handling omitted. */
void demo(void *arg)
{
RTIME now, previous;
rt_task_set_periodic(NULL, TM_NOW, 1000000000);
previous = rt_timer_read();
double a = 23.0;
z = 0;
a /= z;
while (1) {
rt_task_wait_period(NULL);
now = rt_timer_read();
/*printf("Time since last turn: %ld.%06ld ms\n",
(long)(now - previous) / 1000000,
(long)(now - previous) % 1000000);*/
previous = now;
}
}void catch_signal(int sig)
{
}
int main(int argc, char* argv[])
{
fesetenv(FE_ENABLED_ENV);
signal(SIGTERM, catch_signal);
signal(SIGINT, catch_signal);
mlockall(MCL_CURRENT|MCL_FUTURE);
rt_task_create(&demo_task, "trivial", 0, 99, 0);
rt_task_start(&demo_task, &demo, NULL);
pause();
rt_task_delete(&demo_task);
}Thanks
Thomas
-----Ursprüngliche Nachricht-----
Von: Gilles Chanteperdrix [mailto:[email protected]
Gesendet: Freitag, 13. Februar 2009 15:01
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Quoted 9 lines · Gilles Chanteperdrix
Quoted 7 lines · [email protected] wrote:
Hi,
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
Quoted 4 lines
An FPU exception triggers a signal, and signal can only be sent to a task running in secondary mode. So, even if we managed to get the signal to be sent to the task immediately, it would cause it to switch to secondary mode. Is it really what you want?
Actually, this should not happen. Could you send us a test program?
Signature · 8 lines
Gilles. -------------------------------------------------------- manroland AG Vorsitzender des Aufsichtsrates: Hanno C. Fiedler Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
In the meanwhile I tried it with Xenomai 2.4.6 (was 2.3.5 before). The effect is still the same. Is there anything else I can do?
Thomas
-----Ursprüngliche Nachricht-----
Von: Gilles Chanteperdrix [mailto:[email protected]
Gesendet: Freitag, 13. Februar 2009 15:01
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Quoted 9 lines · Gilles Chanteperdrix
Quoted 7 lines · [email protected] wrote:
Hi,
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
Quoted 4 lines
An FPU exception triggers a signal, and signal can only be sent to a task running in secondary mode. So, even if we managed to get the signal to be sent to the task immediately, it would cause it to switch to secondary mode. Is it really what you want?
Actually, this should not happen. Could you send us a test program?
Signature · 1 line
Gilles.
Quoted 2 lines · [email protected] wrote:
In the meanwhile I tried it with Xenomai 2.4.6 (was 2.3.5 before). The effect is still the same. Is there anything else I can do?
If you are trying a linux 2.4 kernel, could you try with linux 2.6 ?
Signature · 1 line
Gilles.
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
Thomas
-----Ursprüngliche Nachricht-----
Von: Gilles Chanteperdrix [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 15:12
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: AW: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Quoted 2 lines · [email protected] wrote:
In the meanwhile I tried it with Xenomai 2.4.6 (was 2.3.5 before). The effect is still the same. Is there anything else I can do?
If you are trying a linux 2.4 kernel, could you try with linux 2.6 ?
Signature · 8 lines
Gilles. -------------------------------------------------------- manroland AG Vorsitzender des Aufsichtsrates: Hanno C. Fiedler Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
Wolfgang.
Quoted 15 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Gilles Chanteperdrix [mailto:[email protected]]
Gesendet: Mittwoch, 18. Februar 2009 15:12
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: AW: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 2 lines · [email protected] wrote:
In the meanwhile I tried it with Xenomai 2.4.6 (was 2.3.5 before). The effect is still the same. Is there anything else I can do?
If you are trying a linux 2.4 kernel, could you try with linux 2.6 ?
Quoted 4 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision 4519) and Linux 2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception
-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at 0x10001840 (pid 1127)
Is that the expected behavior?
Wolfgang.
Quoted 11 lines · Wolfgang Grandegger
Quoted 3 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision 4519) and Linux 2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception
Quoted 7 lines
-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Is that the expected behavior?
Yes.
Quoted 7 lines
Wolfgang.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Quoted 16 lines · Philippe Gerum
Quoted 15 lines · Wolfgang Grandegger
Quoted 3 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision 4519) and Linux 2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)
Quoted 5 lines
Quoted 2 lines
Is that the expected behavior?
Yes.
I need to have a look at the 2.4 pipeline patch.
Quoted 9 lines
Quoted 7 lines
Wolfgang.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Thanks for testing it - that is exactly what I would like to see. Obviously it's a kernel/I-Pipe related thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Quoted 4 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision 4519) and Linux 2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception
-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at 0x10001840 (pid 1127)
Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 2 lines · [email protected] wrote:
Thanks for testing it - that is exactly what I would like to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.
I'm afraid this is not I-pipe related, this would have been too easy. The test snippet works fine here as well on a lite5200 + ipipe-2.4.25-1.2-02, ELDK-4.1 environment.
Now we should suspect something going on with your target environment; which libc are you based on?
Quoted 41 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision 4519) and Linux 2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Quoted 11 lines · Philippe Gerum
Quoted 2 lines · [email protected] wrote:
Thanks for testing it - that is exactly what I would like to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.I'm afraid this is not I-pipe related, this would have been too easy. The test snippet works fine here as well on a lite5200 + ipipe-2.4.25-1.2-02, ELDK-4.1 environment.
Now we should suspect something going on with your target environment; which libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 43 lines
Quoted 41 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision 4519) and Linux 2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Okay, we are using ELDK 3.1.1 too, I will check the libc version.
Thanks for your help!
Thomas
________________________________
Von: Philippe Gerum [mailto:[email protected]]
Gesendet: Do 19.02.2009 16:19
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Quoted 11 lines · Philippe Gerum
Quoted 2 lines · [email protected] wrote:
Thanks for testing it - that is exactly what I would like to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.I'm afraid this is not I-pipe related, this would have been too easy. The test snippet works fine here as well on a lite5200 + ipipe-2.4.25-1.2-02, ELDK-4.1 environment.
Now we should suspect something going on with your target environment; which libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 36 lines
Quoted 36 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision 4519) and Linux 2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 7 lines
Quoted 5 lines
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
On behalf of Thomas I would like to answer your question :
We too use Eldk 3.1.1 with a libc-2.3.1.so (from the Eldk 3.1.1 rootfs) and an adeos-ipipe-2.4.25-ppc-DENX-1.2-02.patch.
We do not use Eldk´s rootfs completely, as our system is busybox based, but many parts form it (for example the libraries and bash). Do you know anything else, we have to activate/keep care of to get FPU-exceptions ? From my point of view everything should be configured all right, as we get exceptions when the thread switches to secondary mode!??
Dr. Grandegger : could you be so kind to try Thomas´ testprogram on our plattfrom with Eldk 3.1.1?
Many thanks in advance for your help
Roderik
Quoted 70 lines
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Donnerstag, 19. Februar 2009 16:20
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 2 lines · Philippe Gerum
Quoted 1 line · [email protected] wrote:
Thanks for testing it - that is exactly what I would like
to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.Quoted 3 lines
Quoted 1 line
I'm afraid this is not I-pipe related, this would have been
too easy. The test
Quoted 1 line
snippet works fine here as well on a lite5200 +
ipipe-2.4.25-1.2-02, ELDK-4.1
Quoted 3 lines
environment.
Now we should suspect something going on with your target
environment; which
Quoted 2 lines
libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 10 lines
Quoted 10 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines
Quoted 3 lines
Quoted 2 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk
to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision
4519) and Linux
Quoted 10 lines
Quoted 10 lines
2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Quoted 8 lines
Quoted 8 lines
Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch,Dr. Markus Rall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 2 lines
Quoted 2 lines
USt-Ident-Nr. DE 250200933
Quoted 17 lines
Quoted 7 lines
Quoted 5 lines
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-helpSignature · 6 lines
Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 6 lines · [email protected] wrote:
On behalf of Thomas I would like to answer your question :
We too use Eldk 3.1.1 with a libc-2.3.1.so (from the Eldk 3.1.1 rootfs) and an adeos-ipipe-2.4.25-ppc-DENX-1.2-02.patch.
We do not use Eldk´s rootfs completely, as our system is busybox based, but many parts form it (for example the libraries and bash). Do you know anything else, we have to activate/keep care of to get FPU-exceptions ? From my point of view everything should be configured all right, as we get exceptions when the thread switches to secondary mode!??
Please send your kernel .config file, and the output of the ldd command against the small fesetenv test we have been trying lately on different setups.
TIA,
Quoted 94 lines
Dr. Grandegger : could you be so kind to try Thomas´ testprogram on our plattfrom with Eldk 3.1.1?
Many thanks in advance for your help
RoderikQuoted 64 lines
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Donnerstag, 19. Februar 2009 16:20
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 2 lines · Philippe Gerum
Quoted 1 line · [email protected] wrote:
Thanks for testing it - that is exactly what I would like
to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.Quoted 1 line
I'm afraid this is not I-pipe related, this would have been
too easy. The test
Quoted 1 line
snippet works fine here as well on a lite5200 +
ipipe-2.4.25-1.2-02, ELDK-4.1
Quoted 3 lines
environment.
Now we should suspect something going on with your target
environment; which
Quoted 2 lines
libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 9 lines
Quoted 9 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines
Quoted 3 lines
Quoted 2 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk
to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision
4519) and Linux
Quoted 10 lines
Quoted 10 lines
2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Quoted 8 lines
Quoted 8 lines
Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch,Dr. Markus Rall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 17 lines
Quoted 8 lines
Quoted 7 lines
USt-Ident-Nr. DE 250200933
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-helpSignature · 6 lines
Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Signature · 1 line
Philippe.
Quoted 6 lines
Please send your kernel .config file, and the output of the ldd command against
the small fesetenv test we have been trying lately on different setups.
Please find attached the ldd-output and the kernel-config-file of our Xenomai2.4.6 configuration.
Roderik
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Hello,
are there any news related to this topic? If ELDK 3.1.1 with kernel 2.4 works on your system there must be something wrong with our configuration...
Thomas
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Freitag, 20. Februar 2009 10:36
An: Wildenburg, Roderik RAEK3 MRA
Cc: [email protected]; [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Quoted 6 lines · [email protected] wrote:
On behalf of Thomas I would like to answer your question :
We too use Eldk 3.1.1 with a libc-2.3.1.so (from the Eldk 3.1.1 rootfs) and an adeos-ipipe-2.4.25-ppc-DENX-1.2-02.patch.
We do not use Eldk´s rootfs completely, as our system is busybox based, but many parts form it (for example the libraries and bash). Do you know anything else, we have to activate/keep care of to get FPU-exceptions ? From my point of view everything should be configured all right, as we get exceptions when the thread switches to secondary mode!??
Please send your kernel .config file, and the output of the ldd command against the small fesetenv test we have been trying lately on different setups.
TIA,
Quoted 94 lines
Dr. Grandegger : could you be so kind to try Thomas´ testprogram on our plattfrom with Eldk 3.1.1?
Many thanks in advance for your help
RoderikQuoted 64 lines
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Donnerstag, 19. Februar 2009 16:20
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 2 lines · Philippe Gerum
Quoted 1 line · [email protected] wrote:
Thanks for testing it - that is exactly what I would like
to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.Quoted 1 line
I'm afraid this is not I-pipe related, this would have been
too easy. The test
Quoted 1 line
snippet works fine here as well on a lite5200 +
ipipe-2.4.25-1.2-02, ELDK-4.1
Quoted 3 lines
environment.
Now we should suspect something going on with your target
environment; which
Quoted 2 lines
libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 9 lines
Quoted 9 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines
Quoted 3 lines
Quoted 2 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk
to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision
4519) and Linux
Quoted 10 lines
Quoted 10 lines
2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Quoted 8 lines
Quoted 8 lines
Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch,Dr. Markus Rall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 17 lines
Quoted 8 lines
Quoted 7 lines
USt-Ident-Nr. DE 250200933
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-helpSignature · 6 lines
Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Signature · 13 lines
Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help -------------------------------------------------------- manroland AG Vorsitzender des Aufsichtsrates: Hanno C. Fiedler Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Thomas,
Quoted 3 lines · [email protected] wrote:
Hello,
are there any news related to this topic? If ELDK 3.1.1 with kernel 2.4 works on your system there must be something wrong with our configuration...
I have not found the time yet to test your example with Linux 2.4.25 due to preparations for the EmbeddedWorld fair this week, sorry. How do you build/make your test program?
Wolfgang.
Quoted 115 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Freitag, 20. Februar 2009 10:36
An: Wildenburg, Roderik RAEK3 MRA
Cc: [email protected]; [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 6 lines · [email protected] wrote:
On behalf of Thomas I would like to answer your question :
We too use Eldk 3.1.1 with a libc-2.3.1.so (from the Eldk 3.1.1 rootfs) and an adeos-ipipe-2.4.25-ppc-DENX-1.2-02.patch.
We do not use Eldk´s rootfs completely, as our system is busybox based, but many parts form it (for example the libraries and bash). Do you know anything else, we have to activate/keep care of to get FPU-exceptions ? From my point of view everything should be configured all right, as we get exceptions when the thread switches to secondary mode!??
Please send your kernel .config file, and the output of the ldd command against the small fesetenv test we have been trying lately on different setups.
TIA,
Quoted 91 lines
Dr. Grandegger : could you be so kind to try Thomas´ testprogram on our plattfrom with Eldk 3.1.1?
Many thanks in advance for your help
RoderikQuoted 63 lines
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Donnerstag, 19. Februar 2009 16:20
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 2 lines · Philippe Gerum
Quoted 1 line · [email protected] wrote:
Thanks for testing it - that is exactly what I would like
to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.Quoted 1 line
I'm afraid this is not I-pipe related, this would have been
too easy. The test
Quoted 1 line
snippet works fine here as well on a lite5200 +
ipipe-2.4.25-1.2-02, ELDK-4.1
Quoted 3 lines
environment.
Now we should suspect something going on with your target
environment; which
Quoted 2 lines
libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 9 lines
Quoted 9 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines
Quoted 3 lines
Quoted 2 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk
to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision
4519) and Linux
Quoted 10 lines
Quoted 10 lines
2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Quoted 8 lines
Quoted 8 lines
Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch,Dr. Markus Rall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Quoted 16 lines
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 7 lines
Quoted 7 lines
USt-Ident-Nr. DE 250200933
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-helpSignature · 6 lines
Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Signature · 11 lines
Dr. Wolfgang Grandegger, Phone: (+49)-8142-6698930, Email: [email protected] _____________________________________________________________________ DENX Software Engineering GmbH, CEO: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany -------------------------------------------------------- manroland AG Vorsitzender des Aufsichtsrates: Hanno C. Fiedler Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Hello Wolfgang,
Please ignore my previous post. The build command line I used was:
${CROSS_COMPILE}gcc fetest.c -o fetest -I/opt/eldk/xenomai/include -D_GNU_SOURCE -lm -L/opt/eldk/xenomai/lib -lnative
CROSS_COMPILE points to ppc_82xx-, Xenomai to 2.3.5/2.4.6, eldk to 3.1.1.
Thanks again for your help!
Thomas
Quoted 153 lines
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]]
Gesendet: Mittwoch, 4. März 2009 09:57
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Wildenburg, Roderik RAEK3 MRA; xenomai- [email protected]
Betreff: Re: AW: [Xenomai-help] Floating Point Exceptions in RT-TasksHello Thomas,
Quoted 3 lines · [email protected] wrote:
Hello,
are there any news related to this topic? If ELDK 3.1.1 with kernel
2.4 works on your system there must be something wrong with our configuration...
I have not found the time yet to test your example with Linux 2.4.25 due
to preparations for the EmbeddedWorld fair this week, sorry. How do you build/make your test program?Wolfgang.
Quoted 4 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:xenomai-help-[email protected]] Im Auftrag von Philippe Gerum
Quoted 9 lines
Gesendet: Freitag, 20. Februar 2009 10:36
An: Wildenburg, Roderik RAEK3 MRA
Cc: [email protected]; [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines · [email protected] wrote:
On behalf of Thomas I would like to answer your question :
We too use Eldk 3.1.1 with a libc-2.3.1.so (from the Eldk 3.1.1
rootfs) and an adeos-ipipe-2.4.25-ppc-DENX-1.2-02.patch.
Quoted 2 lines
Quoted 2 lines
We do not use Eldk´s rootfs completely, as our system is busybox
based, but many parts form it (for example the libraries and bash). Do you know anything else, we have to activate/keep care of to get FPU- exceptions ? From my point of view everything should be configured all right, as we get exceptions when the thread switches to secondary mode!??
Quoted 3 lines
Quoted 1 line
Please send your kernel .config file, and the output of the ldd
command against
Quoted 1 line
the small fesetenv test we have been trying lately on different
setups.
Quoted 4 lines
TIA,
Quoted 1 line
Dr. Grandegger : could you be so kind to try Thomas´ testprogram on
our plattfrom with Eldk 3.1.1?
Quoted 83 lines
Quoted 83 lines
Many thanks in advance for your help
RoderikQuoted 79 lines
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Donnerstag, 19. Februar 2009 16:20
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 2 lines · Philippe Gerum
Quoted 1 line · [email protected] wrote:
Thanks for testing it - that is exactly what I would like
to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.Quoted 1 line
I'm afraid this is not I-pipe related, this would have been
too easy. The test
Quoted 1 line
snippet works fine here as well on a lite5200 +
ipipe-2.4.25-1.2-02, ELDK-4.1
Quoted 3 lines
environment.
Now we should suspect something going on with your target
environment; which
Quoted 2 lines
libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 9 lines
Quoted 9 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines
Quoted 3 lines
Quoted 2 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk
to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision
4519) and Linux
Quoted 10 lines
Quoted 10 lines
2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Quoted 8 lines
Quoted 8 lines
Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch,Dr. Markus Rall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 7 lines
Quoted 7 lines
USt-Ident-Nr. DE 250200933
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help--
Philippe._______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-helpQuoted 4 lines
Quoted 4 lines
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. MarkusRall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 4 lines
Quoted 2 lines
USt-Ident-Nr. DE 250200933
Quoted 5 lines
--
Dr. Wolfgang Grandegger, Phone: (+49)-8142-6698930, Email: [email protected]
_____________________________________________________________________
DENX Software Engineering GmbH, CEO: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 8 lines · [email protected] wrote:
Hello Wolfgang,
Please ignore my previous post. The build command line I used was:
${CROSS_COMPILE}gcc
fetest.c-o fetest -I/opt/eldk/xenomai/include -D_GNU_SOURCE -lm -L/opt/eldk/xenomai/lib -lnative
CROSS_COMPILEpoints to ppc_82xx-, Xenomai to 2.3.5/2.4.6, eldk to 3.1.1.
Do you have CONFIG_XENO_OPT_DEBUG_NUCLEUS enabled in your kconfig, and if so, do you get any message in your kernel log when running fetest?
Quoted 163 lines
Thanks again for your help!
Thomas
Quoted 146 lines
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]]
Gesendet: Mittwoch, 4. März 2009 09:57
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Wildenburg, Roderik RAEK3 MRA; xenomai- [email protected]
Betreff: Re: AW: [Xenomai-help] Floating Point Exceptions in RT-TasksHello Thomas,
Quoted 3 lines · [email protected] wrote:
Hello,
are there any news related to this topic? If ELDK 3.1.1 with kernel
2.4 works on your system there must be something wrong with our configuration...
I have not found the time yet to test your example with Linux 2.4.25 due
to preparations for the EmbeddedWorld fair this week, sorry. How do you build/make your test program?Wolfgang.
Quoted 4 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:xenomai-help-[email protected]] Im Auftrag von Philippe Gerum
Quoted 9 lines
Gesendet: Freitag, 20. Februar 2009 10:36
An: Wildenburg, Roderik RAEK3 MRA
Cc: [email protected]; [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines · [email protected] wrote:
On behalf of Thomas I would like to answer your question :
We too use Eldk 3.1.1 with a libc-2.3.1.so (from the Eldk 3.1.1
rootfs) and an adeos-ipipe-2.4.25-ppc-DENX-1.2-02.patch.
Quoted 1 line
Quoted 1 line
We do not use Eldk´s rootfs completely, as our system is busybox
based, but many parts form it (for example the libraries and bash). Do you know anything else, we have to activate/keep care of to get FPU- exceptions ? From my point of view everything should be configured all right, as we get exceptions when the thread switches to secondary mode!??
Quoted 1 line
Please send your kernel .config file, and the output of the ldd
command against
Quoted 1 line
the small fesetenv test we have been trying lately on different
setups.
Quoted 3 lines
TIA,
Quoted 1 line
Dr. Grandegger : could you be so kind to try Thomas´ testprogram on
our plattfrom with Eldk 3.1.1?
Quoted 82 lines
Quoted 82 lines
Many thanks in advance for your help
RoderikQuoted 79 lines
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Philippe Gerum
Gesendet: Donnerstag, 19. Februar 2009 16:20
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 2 lines · Philippe Gerum
Quoted 1 line · [email protected] wrote:
Thanks for testing it - that is exactly what I would like
to see. Obviously it's a
kernel/I-Piperelated thing which prevents me from getting the exception. Unfortunately updating to kernel 2.6 is not an option for now.Quoted 1 line
I'm afraid this is not I-pipe related, this would have been
too easy. The test
Quoted 1 line
snippet works fine here as well on a lite5200 +
ipipe-2.4.25-1.2-02, ELDK-4.1
Quoted 3 lines
environment.
Now we should suspect something going on with your target
environment; which
Quoted 2 lines
libc are you based on?
Works fine with ELDK-3.1.1 rootfs as well.
Quoted 9 lines
Quoted 9 lines
Thomas
-----Ursprüngliche Nachricht-----
Von: Wolfgang Grandegger [mailto:[email protected]]
Gesendet: Mittwoch, 18. Februar 2009 19:59
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]; Gilles Chanteperdrix
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-TasksQuoted 3 lines
Quoted 3 lines
Quoted 2 lines · Wolfgang Grandegger
Quoted 1 line · [email protected] wrote:
Unfortunately I don't have a newer kernel, I will talk
to Wolfgang Grandegger, maybe he can do a short test with my formerly attached sample application.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
I will try it out on my TQM5200 board later today or tomorrow.
With I-Pipe v2.4-03, Xenomai v2.5-devel (SVN revision
4519) and Linux
Quoted 10 lines
Quoted 10 lines
2.6.26 on my TQM85200 I get:
-bash-3.2# ./fpu-exception-test
Floating point exception-bash-3.2# dmesg|tail
...
Xenomai: Switching trivial to secondary mode after exception #1792 from user-space at0x10001840(pid 1127)Quoted 8 lines
Quoted 8 lines
Is that the expected behavior?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch,Dr. Markus Rall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 7 lines
Quoted 7 lines
USt-Ident-Nr. DE 250200933
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help--
Philippe._______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-helpQuoted 4 lines
Quoted 4 lines
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. MarkusRall, Paul Steidle
Quoted 1 line
Quoted 1 line
Sitz der Gesellschaft: Offenbach am Main, Registergericht:
Amtsgericht Offenbach HRB-Nr. 42592
Quoted 3 lines
Quoted 2 lines
USt-Ident-Nr. DE 250200933
Quoted 5 lines
--
Dr. Wolfgang Grandegger, Phone: (+49)-8142-6698930, Email: [email protected]
_____________________________________________________________________
DENX Software Engineering GmbH, CEO: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Signature · 1 line
Philippe.
On behalf of Thomas I would like to answer :
Quoted 1 line
Do you have
CONFIG_XENO_OPT_DEBUG_NUCLEUSenabled in your
yes, we can aahhh have this option enabled.
Quoted 2 lines
kconfig, and if so, do
you get any message in your kernel log when running fetest?
no, no message anywhere (/var/log/messages, console, dmesg). fetest runs and runs till I sent CTRL-C.
Roderik
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 4 lines · [email protected] wrote:
On behalf of Thomas I would like to answer :
Quoted 1 line
Do you have
CONFIG_XENO_OPT_DEBUG_NUCLEUSenabled in your
Quoted 8 lines
yes, we can aahhh have this option enabled.
Quoted 2 lines
kconfig, and if so, do
you get any message in your kernel log when running fetest?no, no message anywhere (
/var/log/messages, console, dmesg). fetest runs and runs till I sent CTRL-C.
Gilles sent you a patch affecting include/asm-powerpc/bits/pod.h a few weeks ago, that fixed an FPU issue. Are you running with this patch applied?
Quoted 9 lines
Roderik
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Signature · 1 line
Philippe.
Quoted 10 lines · Philippe Gerum
Quoted 9 lines · [email protected] wrote:
On behalf of Thomas I would like to answer :
Quoted 1 line
Do you have
CONFIG_XENO_OPT_DEBUG_NUCLEUSenabled in youryes, we can aahhh have this option enabled.
Quoted 2 lines
kconfig, and if so, do
you get any message in your kernel log when running fetest?no, no message anywhere (
/var/log/messages, console, dmesg). fetest runs and runs till I sent CTRL-C.
I just tried the program fetest on my TQM5200 with a fresh Xenomai 2.4.x and the linuxppc_2_4_devel tree and the excepetion does *not* get triggered. Actually I realize the following wired behavior:
/fpu_test
^C
./fpu_test
^C
Feb 3 17:16:12 tqm5200 kernel: Xenomai: Switching trivial to secondary
mode after exception #1792 from user-space at 0x10001974 (pid 342) Floating point exception
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_test
After aborting the fpu_test program with ^C, I get the message above, but only after the second try.
Quoted 2 lines
Gilles sent you a patch affecting
include/asm-powerpc/bits/pod.ha few weeks ago, that fixed an FPU issue. Are you running with this patch applied?
$ svn log include/asm-powerpc/bits/pod.h ------------------------------------------------------------------------ r4600 | gch | 2009-01-31 19:46:37 +0100 (Sat, 31 Jan 2009) | 1 line
Is that the patch you have in mind?
Wolfgang.
Quoted 7 lines · Wolfgang Grandegger
Quoted 6 lines · Philippe Gerum
Quoted 5 lines · [email protected] wrote:
On behalf of Thomas I would like to answer :
Quoted 1 line
Do you have
CONFIG_XENO_OPT_DEBUG_NUCLEUSenabled in youryes, we can aahhh have this option enabled.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
kconfig, and if so, do
you get any message in your kernel log when running fetest?no, no message anywhere (
/var/log/messages, console, dmesg). fetest runs and runs till I sent CTRL-C.I just tried the program fetest on my TQM5200 with a fresh Xenomai 2.4.x and the
linuxppc_2_4_develtree
I'm currently using an outdated version of this tree. I need to sync and retry.
and the excepetion does *not* get
Quoted 18 lines
triggered. Actually I realize the following wired behavior:
/fpu_test
^C
./fpu_test
^CFeb 3 17:16:12 tqm5200 kernel: Xenomai: Switching trivial to secondarymode after exception #1792 from user-space at
0x10001974(pid 342) Floating point exception
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_testAfter aborting the
fpu_testprogram with ^C, I get the message above, but only after the second try.
Quoted 9 lines
Quoted 2 lines
Gilles sent you a patch affecting
include/asm-powerpc/bits/pod.ha few weeks ago, that fixed an FPU issue. Are you running with this patch applied?$ svn log include/asm-powerpc/bits/pod.h ------------------------------------------------------------------------ r4600 | gch | 2009-01-31 19:46:37 +0100 (Sat, 31 Jan 2009) | 1 lineIs that the patch you have in mind?
Yes.
Quoted 2 lines
Wolfgang.
Quoted 7 lines · Wolfgang Grandegger
Quoted 6 lines · Philippe Gerum
Quoted 5 lines · [email protected] wrote:
On behalf of Thomas I would like to answer :
Quoted 1 line
Do you have
CONFIG_XENO_OPT_DEBUG_NUCLEUSenabled in youryes, we can aahhh have this option enabled.
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
kconfig, and if so, do
you get any message in your kernel log when running fetest?no, no message anywhere (
/var/log/messages, console, dmesg). fetest runs and runs till I sent CTRL-C.I just tried the program fetest on my TQM5200 with a fresh Xenomai 2.4.x and the
linuxppc_2_4_develtree and the excepetion does *not* get triggered. Actually I realize the following wired behavior:
I can reproduce this as well on the tqm now. This seems to be a nucleus issue wrt FPU management. More later.
Quoted 27 lines
/fpu_test
^C
./fpu_test
^CFeb 3 17:16:12 tqm5200 kernel: Xenomai: Switching trivial to secondarymode after exception #1792 from user-space at
0x10001974(pid 342) Floating point exception
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_testAfter aborting the
fpu_testprogram with ^C, I get the message above, but only after the second try.Quoted 2 lines
Gilles sent you a patch affecting
include/asm-powerpc/bits/pod.ha few weeks ago, that fixed an FPU issue. Are you running with this patch applied?$ svn log include/asm-powerpc/bits/pod.h ------------------------------------------------------------------------ r4600 | gch | 2009-01-31 19:46:37 +0100 (Sat, 31 Jan 2009) | 1 lineIs that the patch you have in mind?
Wolfgang.
Hello Philippe,
could you find out something new with this issue ?
Roderik
Quoted 42 lines
Quoted 5 lines · Wolfgang Grandegger
Quoted 4 lines · Philippe Gerum
Quoted 3 lines · [email protected] wrote:
On behalf of Thomas I would like to answer :
Quoted 1 line
Do you have
CONFIG_XENO_OPT_DEBUG_NUCLEUSenabled in yourQuoted 8 lines
Quoted 6 lines
Quoted 6 lines
yes, we can aahhh have this option enabled.
Quoted 2 lines
kconfig, and if so, do
you get any message in your kernel log when running fetest?no, no message anywhere (
/var/log/messages, console, dmesg). fetest runs and runs till I sent CTRL-C.I just tried the program fetest on my TQM5200 with a fresh
Xenomai 2.4.x
Quoted 3 lines
and the
linuxppc_2_4_develtree and the excepetion does *not* get triggered. Actually I realize the following wired behavior:I can reproduce this as well on the tqm now. This seems to be a nucleus issue
wrt FPU management. More later.Quoted 5 lines
/fpu_test
^C
./fpu_test
^CFeb 3 17:16:12 tqm5200 kernel: Xenomai: Switching trivialto secondary
Quoted 9 lines
mode after exception #1792 from user-space at
0x10001974(pid 342) Floating point exception
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_testAfter aborting the
fpu_testprogram with ^C, I get themessage above,
Quoted 3 lines
but only after the second try.
Quoted 1 line
Gilles sent you a patch affecting
Quoted 16 lines
include/asm-powerpc/bits/pod.ha few weeksQuoted 1 line
Quoted 1 line
ago, that fixed an FPU issue. Are you running with this
patch applied?
Quoted 3 lines
$ svn log include/asm-powerpc/bits/pod.h--------------------------------------------------------------
----------Quoted 6 lines
r4600 | gch | 2009-01-31 19:46:37 +0100 (Sat, 31 Jan 2009) | 1 line
Is that the patch you have in mind?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 3 lines · On Mon, 2009-03-23 at 15:25 +0100, [email protected] wrote:
Hello Philippe,
could you find out something new with this issue ?
I did not manage to resume work on this issue yet, unfortunately. Meanwhile, you my want to switch to 2.4.7, so that we don't run into already fixed issues when chasing this one later on.
Quoted 68 lines
Roderik
Quoted 42 lines
Quoted 5 lines · Wolfgang Grandegger
Quoted 4 lines · Philippe Gerum
Quoted 3 lines · [email protected] wrote:
On behalf of Thomas I would like to answer :
Quoted 1 line
Do you have
CONFIG_XENO_OPT_DEBUG_NUCLEUSenabled in yourQuoted 8 lines
Quoted 6 lines
Quoted 6 lines
yes, we can aahhh have this option enabled.
Quoted 2 lines
kconfig, and if so, do
you get any message in your kernel log when running fetest?no, no message anywhere (
/var/log/messages, console, dmesg). fetest runs and runs till I sent CTRL-C.I just tried the program fetest on my TQM5200 with a fresh
Xenomai 2.4.x
Quoted 3 lines
and the
linuxppc_2_4_develtree and the excepetion does *not* get triggered. Actually I realize the following wired behavior:I can reproduce this as well on the tqm now. This seems to be a nucleus issue
wrt FPU management. More later.Quoted 5 lines
/fpu_test
^C
./fpu_test
^CFeb 3 17:16:12 tqm5200 kernel: Xenomai: Switching trivialto secondary
Quoted 9 lines
mode after exception #1792 from user-space at
0x10001974(pid 342) Floating point exception
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_test
^C
bash-2.05b# ./fpu_testAfter aborting the
fpu_testprogram with ^C, I get themessage above,
Quoted 3 lines
but only after the second try.
Quoted 1 line
Gilles sent you a patch affecting
Quoted 16 lines
include/asm-powerpc/bits/pod.ha few weeksQuoted 1 line
Quoted 1 line
ago, that fixed an FPU issue. Are you running with this
patch applied?
Quoted 3 lines
$ svn log include/asm-powerpc/bits/pod.h--------------------------------------------------------------
----------Quoted 6 lines
r4600 | gch | 2009-01-31 19:46:37 +0100 (Sat, 31 Jan 2009) | 1 line
Is that the patch you have in mind?
Wolfgang.
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Signature · 1 line
Philippe.
Quoted 5 lines
Gilles sent you a patch affecting
include/asm-powerpc/bits/pod.ha few weeks
ago, that fixed an FPU issue. Are you running with this patch applied?
Yes, with 2.3.5 and 2.4.6. Both show the same behavior. Obviously, in the meantime, Wolfgang could reproduce the problem!?
Roderik
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 7 lines · [email protected] wrote:
Quoted 3 lines
Gilles sent you a patch affecting
include/asm-powerpc/bits/pod.ha few weeks ago, that fixed an FPU issue. Are you running with this patch applied?Yes, with 2.3.5 and 2.4.6. Both show the same behavior. Obviously, in the meantime, Wolfgang could reproduce the problem!?
Unfortunately, I'm not able to reproduce this bug on my side, even using the latest linuxppc_devel tree. I have attached my test code to make sure we are testing the same thing. This test code does raise the FPU exception properly.
Quoted 8 lines
Roderik
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592
USt-Ident-Nr. DE 250200933
#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#include <fenv.h>
#include <native/task.h>
double z;
int main (int argc, char **argv)
{
double a = 23.0;
z = 0;
fesetenv(FE_ENABLED_ENV);
mlockall(MCL_CURRENT | MCL_FUTURE);
rt_task_shadow(NULL, "main", 10, 0);
a /= z;
rt_task_suspend(NULL);
return (int)a;
}A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Wolfgang Grandegger
Quoted 8 lines · Philippe Gerum
Quoted 7 lines · [email protected] wrote:
Quoted 4 lines
Gilles sent you a patch affecting
include/asm-powerpc/bits/pod.ha few weeks
ago, that fixed an FPU issue. Are you running with this patch applied?Yes, with 2.3.5 and 2.4.6. Both show the same behavior. Obviously, in the meantime, Wolfgang could reproduce the problem!?
Quoted 7 lines
Quoted 4 lines
Unfortunately, I'm not able to reproduce this bug on my side, even using the latest
linuxppc_develtree. I have attached my test code to make sure we are testing the same thing. This test code does raise the FPU exception properly.And it does here as well, but not the program provided by Thomas, which I have attached.
Still no luck, this test code works as well on my setup over a lite5200 (latest linuxppc_2_4_devel, Xenomai 2.4.7). I guess I need to try this on the tqm5200 instead.
Quoted 5 lines
Wolfgang
Quoted 6 lines
Unfortunately, I'm not able to reproduce this bug on my side, even using the
latestlinuxppc_develtree. I have attached my test code to make sure we are
testing the same thing. This test code does raise the FPU exception properly.
This program produces a core here too (Xeno 2.4.6).
May I remember that Thomas got a core too, when he forced a switch to secondary mode. Probably your task_suspend is something similar.
Thomas´ original post from 13.2.09
===================================
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933
Quoted 6 lines · [email protected] wrote:
Quoted 1 line
Unfortunately, I'm not able to reproduce this bug on my side, even using the latest
linuxppc_develtree. I have attached my test code to make sure we are testing the same thing. This test code does raise the FPU exception properly.This program produces a core here too (Xeno 2.4.6).
May I remember that Thomas got a core too, when he forced a switch to secondary mode. Probably yourtask_suspendis something similar.
rt_task_suspend() is a conforming call; on behalf of a Xenomai task, it will switch to (or remain in) _primary_ mode, this is precisely why this test is using it. As a matter of fact, fetest.c does trigger the exception as well with my setup, albeit it does not on yours, so the explanation must be elsewhere.
Quoted 15 lines
Thomas´ original post from 13.2.09
===================================
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592
USt-Ident-Nr. DE 250200933
Quoted 8 lines · [email protected] wrote:
Hi,
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
Could you check whether the following test does raise an exception on your setup? TIA,
#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#include <fenv.h>
#include <native/task.h>
double z;
int main (int argc, char **argv)
{
double a = 23.0;
z = 0;
fesetenv(FE_ENABLED_ENV);
mlockall(MCL_CURRENT | MCL_FUTURE);
rt_task_shadow(NULL, "main", 10, 0);
a /= z;
rt_task_suspend(NULL);
return (int)a;
}Quoted 8 lines
Thanks for your help!
Thomas_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Sorry, no exception is fired.
Thomas
-----Ursprüngliche Nachricht-----
Von: Philippe Gerum [mailto:[email protected]
Gesendet: Freitag, 13. Februar 2009 15:40
An: Debes, Thomas RAEK3 MRA
Cc: [email protected]
Betreff: Re: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Quoted 8 lines · [email protected] wrote:
Hi,
I successfully managed to enable FP Exceptions on our MPC5200 board for plain linux applications (via fesetenv). When I put the same trigger code (DivByZero) into a (native) RT task no exception is triggered until I force a mode switch to secondary mode (e.g. printf). How can I get them without performing the mode switch?
Could you check whether the following test does raise an exception on your setup? TIA,
#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#include <fenv.h>
#include <native/task.h>
double z;
int main (int argc, char **argv)
{
double a = 23.0;
z = 0;
fesetenv(FE_ENABLED_ENV);
mlockall(MCL_CURRENT | MCL_FUTURE);
rt_task_shadow(NULL, "main", 10, 0);
a /= z;
rt_task_suspend(NULL);
return (int)a;
}Quoted 8 lines
Thanks for your help!
Thomas_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 8 lines
Philippe. -------------------------------------------------------- manroland AG Vorsitzender des Aufsichtsrates: Hanno C. Fiedler Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933