[okl4-developer] Enable / disable interrupts
Geoffrey Lee
glee at ok-labs.com
Thu Jun 19 20:57:49 EST 2008
On Thu, Jun 19, 2008 at 11:41:28AM +0200, Guillaume PETITJEAN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> >> The interrupt is masked in the interrupt controller. Once the
> >> user-level driver has finished processing the interrupt, it is
> >> reenabled with the InterruptControl() system call. Most code
> >> would use the convenience functions located in
> >> libs/l4/include/interrupt.h though.
> >
>
> My question was more related to other interrupts. If the driver
> manages several interrupts I have first to disable all these
> interrupts, not only the current one, right ?
If another interrupt is received in the meantime they are marked
as pending in the kernel. They will be delivered once driver
thread indicates to the kernel that it is ready to receive
another interrupt. User-level drivers in OKL4 never explicitly
masks interrupts. Interrupts are only masked as a result of
an interrupt being raised, and is unmasked once it has been
handled.
-gl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIWinIjv846okcfKkRApodAJ9OPXoFnLITktPbcir2f/E9nFWAlACgriVn
> YmSFMJOAfMoX3Iak55DuVOE=
> =Xo34
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list