How to mask IRQ

Sergei Organov osv at topconrd.ru
Wed Jun 1 13:09:55 UTC 2005


eric.valette at free.fr writes:

> Quoting Sergei Organov <osv at topconrd.ru>:
> 
> > leonp at plris.com writes:
> >
> 
> > Sorry, but I fail to see how it supposed to work if your IRQ handler is
> > invoked when another IRQ handler is running. Your change to the
> > ppc_cached_irq_mask on exit from your IRQ handler will be overwritten on
> > return from another IRQ handler. Am I missing something?
> 
> This is exactly why manipulating masks within one interrupt handler
> leads to non working code : what mask do you intend to restore and
> when?.

I believe I've already posted working solution that correctly emulates
hardware PIC with ability to mask/unmask individual interrupts earlier
in this thread.

-- 
Sergei.




More information about the users mailing list