Don't use SMP in your kernel and your module if you've got only one processor
(and no APIC).
I don't know how it works for rtlinux, but for RTAI, you have a function called
rt_pend_linux_irq to forward an irq to linux, and many other features to share
interrupts with linux.
 
1) Non shared IRQ
rt_request_global_irq : request IRQ
rt_pend_linux_irq : forward IRQ to linux
rt_free_global_irq

2) Shared IRQ
rt_request_linux_irq : share IRQ with Linux
rt_free_linux_irq

Stephane

On Mon, Sep 24, 2001 at 10:02:23AM +0200, David Tsaava wrote :
> Hello,
> 
> I have ported one Linux Device Driver to RT-Linux.
> The driver is working properly in polling mode 
> (irq on device disabled) but there is a problem 
> with IRQs. IRQ handler is called only once and 
> run down properly. Then kernel reports 
> segmentation fault or PC crashes.
> I'm calling rtl_hard_enable_irq(irq); at the end 
> of my intrerrupt handler, so the problem is not 
> in interrupt handler itself. The same problem occures
> using ISA or PCI device, that mean the problem is not 
> necessarily shared interrupt on PCI-Bus (RT-L does not 
> support irq-sharing, which is crucial for PCI hardware).
> What I have to take into account while configuring and
> compiling RT-Linux Kernel. I'm using -D__SMP__ flag in my
> Makefile, because SMP support was set for the Kernel. What
> else have I to check?
> 
> Thank you for tip.
> 
> Looking forward,
> 
> David Tsaava 
> 
> _______________________________________________________________________
> 1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
> [EMAIL PROTECTED], 8MB Speicher, Verschluesselung - http://freemail.web.de
> 
> 
> -- [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/
> 

-- 
St�phane LIST                     -- <[EMAIL PROTECTED]>
Alc�ve, l'informatique est libre  -- <http://www.alcove.com/>

-- [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/

Reply via email to