|
From: Luca A. <luc...@em...> - 2003-05-05 07:58:23
|
Hi Juras,
> What's the difference between irq_bind and l1_irq_bind ?
irq_bind is a kl function: it supports the ``event interface'', and is
safer to use when you are doing multitasking.
l1_irq_bind is a lower level function (it directly accesses the xlib
mechanism that is used by irq_bind). If you use it, you will have less
overhead in interrupt management (you can save one indirection), but
things become tricky when you do multitasking.
> what's the function's prototype which is called on an interrupt ?
for the low-level mechanism:
void handler(int i) /* i is the interrupt number */
for the kl mechanism
void handler(void *p)
here, p should be a pointer to some user-defined data... Currently, it
is a pointer to an integer variable containing the irq number.
> how to install a custom exception handler (e.g. for exc.13, GPF) while using kernel
> library?
Currently, you have to use the lower-level call l1_exc_bind...
I think noone ever used the kl interface for exceptions, hence it is not
implemented... Of course, patches are accepted ;-)
Luca
--
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
N O W A R ! ! !
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
L'interpretazione dei doni di orti, frutteti, prati e giardini nel nostro Ristoro Sunflower.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1478&d=5-5
|