Hi Pavel,
Thanks for your fast answer! I'll try to be clrearest:
At 09:41 AM 27/06/00 +0200, Pavel Andris wrote:
>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.
I think you're right.
>
>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).
>
I make reference to floating point variables in my init_module() and
handlers but i'm not calling pthread_setfp_np. Shouldn't me calling to use
correctly floating point variables ? Shouldn't me having troubles ? But
the program seems work fine...
Thank you very much,
Daniela.
-- [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/