[okl4-developer] Enable / disable interrupts
Geoffrey Lee
glee at ok-labs.com
Thu Jun 19 18:27:32 EST 2008
On Thu, Jun 19, 2008 at 10:21:02AM +0200, Guillaume PETITJEAN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
Hi Guillaume
>
> In OKL4 how do you enable / disable interrupts when implementing a
> driver using the device driver framework ?
>
> Is it done automatically (because the interrupt handler thread is
> processing the interrupt and then is not waiting for an IPC
> corresponding to an interrupt) ? Or do you have to do something
> explicitely ?
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.
>
> Guillaume
-gl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIWhbujv846okcfKkRAu8xAKDdBCC1jnKUIgpig01JHxy0RATpFwCfZ9pc
> zqQA6STYBZ6xF9K/QD5vd7g=
> =nnHp
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list