How to mask IRQ
osv at topconrd.ru
Wed Jun 1 12:56:34 UTC 2005
leonp at plris.com 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?
More information about the users