Q about registering for an interrupt on MPC8360e
Hi,
Currently, we are trying to register for IRQ1-7
of our MPC8360e.
We found that we have to do the following steps to get interrupts working:
1) irq_of_parse_and_map(): To get and map the hardware interrupt
2) request_irq(): Installs a dummy handler
3) rt_intr_create(): Installs the real ISR
The application is running in user-space. 1) and 2) are called from and ioctl(). 3) is called directly from the user-space Xenomai application.
Is request_irq() required? IMHO it shouldn't be, right?
Andreas
Xenomai: 2.4.9
Ipipe: 2.7
Kernel: 2.6.30
Quoted 12 lines · Andreas Glatz
Hi,
Currently, we are trying to register for IRQ1-7
of our MPC8360e.We found that we have to do the following steps to get interrupts working:
1)
irq_of_parse_and_map(): To get and map the hardware interrupt
2)request_irq(): Installs a dummy handler
3)rt_intr_create(): Installs the real ISR
Quoted 6 lines
The application is running in user-space. 1) and 2) are called from and
ioctl(). 3) is called directly from the user-space Xenomai application.Is
request_irq()required? IMHO it shouldn't be, right?
Correct. rt_intr_enable() is required after rt_intr_create() to unmask the interrupt line (see @note from the rt_intr_create() doc). This is what request_irq() implicitly does by calling the startup() handler from the relevant IRQ chip controller.
Quoted 12 lines
Andreas
Xenomai: 2.4.9
Ipipe: 2.7
Kernel: 2.6.30_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.