Hi Daniela,

> work very well, without crashs. Important points: I'm still using FP in my
> init_module() and fifo handlers and i don't call pthread_setfp_np (or
> something like that) in any point of my code.
> 
>       Hoping you can help me to understand this,

I'm not very keen to read and understand your code, but just a few notes:

You've mentioned that your code started to work after removing
rtl_printf-s.  The possible cause is that code with rtl_printf-s
lasted (duration) much longer than the allocated period. The code
whithout rtl_printf-s was OK. If possible, opt for a longer period for
code with rtl_printf-s.

Using FP in init_module(), fifo handler, ISR is just asking for
trouble.  Remember, FP is a co-processor with its own set of
registers. Any thread/handler/process using FP MUST save/restore the
registers when leaving/entering. Otherwise it may use the registers
modified by something else. If you want to use FP in situations where
saving/restoring FP registers is not supported, you have to arrange it
yourself. It is supported in RT threads (pthread_setfp_np).

Regards,

pa


-- 
..........................................................................
Pavel Andris                               | tel: +421 7 5941 2167
Institute of Control Theory and Robotics   | fax: +421 7 5477 6045
Slovak Academy of Sciences                 | 
Dubravska cesta 9                          | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava                     |
Slovakia                                   |
.........................................................................
-- [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/

Reply via email to