HI,

How about saving the floating point context at the start of the ISR and
restoring it at the end.
Look in the scheduler for tips on how to do this.
You will have to lock out everything else while you do this but this IS
RT Linux.

Regards
  Phil Wilshire


"Basham, Richard R" wrote:
> 
> Jan, Garth,
> 
> That is a very good point.  I don't know of a work around for using rt_task_use_fp 
>and interrupts other than what you are already doing.  If Garth is using or expecting 
>to use floating point he may have to keep his code the way it is.  Maybe, someone 
>else in this group can enlighten us further on using floating point within interrupt 
>service routines.
> 
> > ----------
> > From:         Jan Kansky[SMTP:[EMAIL PROTECTED]]
> > Sent:         Thursday, July 15, 1999 12:34 PM
> > To:   Basham, Richard R
> > Cc:   [EMAIL PROTECTED]; 'Garth Gaddy'
> > Subject:      RE: [rtl] non periodic task
> >
> > Garth, Rich,
> >   I'm doing something very similar.  In my irq handler I call
> > rt_task_wakeup, and then when the rttask is done it
> > calls rt_task_suspend. Originally I just put everything
> > into the isr, but then I needed to use the floating point unit.  The
> > call to rt_task_use_fp requires a task to be passed in, so I had to
> > resort to the wakeup method.  Is there any way around this?  How much
> > time does a get_time and wakeup call use?
> >
> > -Jan
> >
> >
> --- [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/

Reply via email to