Adam,

For doing this, I suggest using an FPU-enabled thread with a body like:

thread_code()
{
        while(1) {
                pthread_suspend_np(pthread_self());
                your_handler_work();
        }
}


interrupt_handler()
{
        pthread_wakeup_np(thread);
}

Also, I strongly suggest upgrading to 3.0pre8. Several important bugs have
been fixed since 2.0pre2.

Michael.


Adam Meyerowitz ([EMAIL PROTECTED]) wrote:
> Hello All,
> 
> I am using RTL 2.0 pre 2 with a 2.2.13 kernel (yes, I know I should upgrade 
> but it suits me just
> fine at the time being).  I have a very simple module that has a 
> init_module, cleanup_module and
> an interrupt handler.  I would like to do some floating point calculations 
> in my interrupt handler.
> Is this possible (I'm pretty sure it is), and if so how do I instruct the 
> RTL system that I am using
> floating point math in my interrupt handler.
> 
> Thanks,
> Adam
-- [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