Skip to contentSkip to conversation

Q about registering for an interrupt on MPC8360e

Xenomai-help Andreas Glatz 2 participants 2 messages Sep 24, 2009 – Sep 26, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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.