How to mask IRQ

leonp at leonp at
Wed Jun 1 13:01:08 UTC 2005

On Wednesday, 1 בJune 2005 15:56, Sergei Organov wrote:
> leonp at writes:
> > On Wednesday, 1 в▒June 2005 15:28, Thomas Doerfler wrote:
> > > Yes, you are right, some details must be carefully modified in the
> > > current implementation to use the API from within interrupt context.
> > > And you are right again, the existing calls are quite expensive. Do you
> > > have any other recommendations to solve your requirements?
> >
> > I also do not like the "returned value" solution , although I suggested
> > it. The API functions are much more elegant.
> >
> > But in the current time constrains I have, the simplest and securest
> > thing I see is only this. And it adds only 2 assembler instructions
> > overhead (to test the returned value).
> 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?

Yes, the thing you are missing is the fact that I am stupid...:-)

Leon M.Pollak

More information about the users mailing list