Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where is the definition of type "irq_handler_t"

612 views
Skip to first unread message

Luo, Jianying(Jerry)

unread,
Oct 18, 2003, 1:10:48 AM10/18/03
to
What's more, The book says MINIX support 56 interuption.
But there is only 16 slots in the table irq.

mo...@mclink.net

unread,
Oct 18, 2003, 5:19:18 AM10/18/03
to

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


mo...@mclink.net

unread,
Oct 18, 2003, 11:25:58 AM10/18/03
to
>
> > 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,
>

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

0 new messages