irq_handler_t is defined in src/kernel/type.h as:
typedef _PROTOTYPE( int (*irq_handler_t), (int irq) );
that is expanded in this way:
typedef int (*irq_handler_t) (int irq); (I hope it would be right)
It's a pointer to a function that gets an int (irq) as parameter and
return an int as a result (in eax). The result is used to know if an
interrupt has to be reenabled or not (look at mpx386.s).
> What's more, The book says MINIX support 56 interuption.
> But there is only 16 slots in the table irq.
>
>
They are for future use, the book says this also :)
Bye,
tano
I was forgetting one thing: the slots used in the idt are not only 16,
you have to add to this number the exceptions handlers and the system
call vectors.
Look at protect.c.
Bye,
tano