How to mask IRQ

Eric Valette eric.valette at free.fr
Sun May 29 12:42:54 UTC 2005


leonp at plris.com wrote:

> 	I need to mask, for example, IRQ5 interrupt from within the ISR.

You mean while handling another IRQ (e.g IRQ 4) I guess?

> 	Today's implementation seems not to allow this operation, as the ISR is 
> called from the IRQ dispatcher, which restores the mask state to the value it 
> saved before the ISR was called.
> 	The most simple decision I see, is to return the desired mask as a return 
> value from the ISR function. Thus, the dispatcher must check that the ISR 
> return value is not zero.

In the MPC860, there is a way to mask automatically other interrupts
when a dedicated interrupt occur (at least at the CPM level) I do not
remember for the SIU. Its from memory as I do not have the source handy...

In theory, the masks in the interrupt controller enables to define a set
of interrupt blocked on a per irq basis. Check the sources I think there
is a mask somewhere...



-- 
   __
  /  `                   	Eric Valette
 /--   __  o _.          	6 rue Paul Le Flem
(___, / (_(_(__         	35740 Pace

Tel: +33 (0)2 99 85 26 76	Fax: +33 (0)2 99 85 26 76
E-mail: eric.valette at free.fr






More information about the users mailing list