How to mask IRQ
Thomas Doerfler
Thomas.Doerfler at imd-systems.de
Wed Jun 1 12:28:57 UTC 2005
Leon,
leonp at plris.com schrieb:
> On Tuesday, 31 בMay 2005 20:34, Thomas Doerfler wrote:
>
>>Would this be ok for your requirements?
>
> Thanks Thomas.
> Well, for my current project any of these solutions will be OK :-)
> But I think that this seems to be a high price to be paid for a simple
> operation, such as masking of interrupt. These routines you mentioned are
> relatively heavy, a lot of code.
> And it requires some significant redesign, as for now it simply will not
> work: the BSP_remove_rtems_irq_handler() masks the SIU interrupt and stores
> the "new" mask in the same ppc_chached_mask variable which is restored in the
> handler after ISR return.
> Thus, any changes will be destroyed at the ISR exit.
>
> Am I correct?
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?
wkr,
Thomas.
--
--------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler Herbststrasse 8
D-82178 Puchheim Germany
email: Thomas.Doerfler at imd-systems.de
PGP public key available at:
http://www.imd-systems.de/pgp_keys.html
More information about the users
mailing list