Hi,
I could not infer from the RTAI documentation whether Linux interrupts
are by default pended or not by RTAI when Linux is not running. On a
diagram that describes the interrupt dispatching has a <?> (branch),
but it is not clear what the branch is exactly about. I tried to use
rt_request_global() (see the code below, function request_nic_irq() is
called with argument 10, which is the NIC interrupt that I want to
pend for Linux from RT domain), but the machine reset itself
immediately. I could not find any example of this operation (other
than something similar in rt_request_timer()). Do I need to use locks
or disable/enable interrupts?
Thanks,
Aleks
static int nic_irq;
static void pend_nic_interrupt(void)
{
rt_pend_linux_irq(nic_irq);
}
void request_nic_irq(int irq)
{
nic_irq = irq;
rt_free_global_irq(nic_irq);
rt_request_global_irq(nic_irq, pend_nic_interrupt);
}
--- [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/