Dear All
Thanks to Nathan and Michael
By calling pthread_setfp_np(pthread_self(), 1);
The problem has been fixed.
Thanks again
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Mohsen Mahvash
Phd Student
Centre for Intelligent Machines Address: 3480 University Street
E-mail: [EMAIL PROTECTED] Montreal, QC, H3A 2A7
http://www.cim.mcgill.ca/~mahvash
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
On Thu, 7 Dec 2000, Nathan Paul Simons wrote:
> On Thu, Dec 07, 2000 at 02:51:44PM -0500, Mohsen Mahvash Mohammadi wrote:
> > I have found that using sin() and cos() in real time task has caused
> > segmentation fault for user program.here is part of my program which
> > causes the problem:
>
> Couple of things to check:
>
> 1) Make sure floating point support is turned on when you configure RTLinux.
> 2) Make sure you enable floating point support for the thread you will be
> doing floating point in by calling pthread_setfp_np(pthread_self(), 1) before
> you do anything else in that thread (even initialization of floating point
> variables).
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
>
>
>
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/