[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] Q: reentrant ISR's



On Mon, Apr 10, 2000 at 02:24:49PM +0200, Roland Lang wrote:
> Hi.
> 
> I have setup a ISR on the 8254 Timer Hardware Interrupt 0.
> I am not using the scheduler. I need to program a detection
> mechanism whether the ISR is again called before the last one has 
> terminated. I need to do this because of a compatibility to 
> another system. But it seems the HW Interrupts are turned off 
> while the ISR is running so that this detection doesn't work.
> 
> My Question: How can I generate a reentrant ISR using RTL2.2?

You must use 
          rtl_hard_enable_irq(0); /* on intel boards, re-enables on 8259*/
          rtl_allow_interrupts(); /* does a hard sti */


> 
> Thanks for any help.
> Kind regards, Roland.
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

-- 
---------------------------------------------------------
Victor Yodaiken 
FSMLabs:  www.fsmlabs.com  www.rtlinux.com
FSMLabs is a servicemark and a service of 
VJY Associates L.L.C, New Mexico.