Skip to contentSkip to conversation

hw interrupts off, __ipipe_handle_irq

Adeos-main A C 2 participants 2 messages Jan 19, 2010 – Jan 20, 2010

lore
Share & tools
lore

A C

author
#0 lore raw

Hello,
in the comment before the definition of the function __ipipe_handle_irq(), it is written : "hw interrupts are off on entry". For the isr of the nios2, is it done (disable hw interrupts) in entry.s or in __ipipe_grab_irq() ? In fact, we do not find where it is done. Regards
Adrien Chiron & Vincent Vanbesien

#1 lore raw
Quoted 5 lines · A C

Hello, in the comment before the definition of the function __ipipe_handle_irq(), it is written : "hw interrupts are off on entry". For the isr of the nios2, is it done (disable hw interrupts) in entry.s or in __ipipe_grab_irq() ? In fact, we do not find where it is done. Regards Adrien Chiron & Vincent Vanbesien

That is standard behaviour for a processor to enter interrupt handling code with interrupts disabled somehow. Otherwise, for level interrupts, you would get an infinite loop. So, what you should look for in entry.S are the points where interrupts are re-enabled, because this code is entered with irqs off, mostly.

Signature · 1 line
					    Gilles.