Page 1 of 1

Nbr of interrupts

Posted: Mon Jul 05, 2004 3:58 pm
by BrandonChris
How many software interrupts can I have? Cause if I should use this instead of call gates, I spose I need lots of them

Re:Nbr of interrupts

Posted: Mon Jul 05, 2004 5:23 pm
by Curufir
There 256 possible IDT entries.

Exceptions take up 32, IRQs take up 16. Do the maths :).

Re:Nbr of interrupts

Posted: Mon Jul 05, 2004 10:56 pm
by Liquidicecube
The standard way to do this is by adding another level of indirection. In the case of Linux, iirc it uses 0x80 as the sole software interrupt, and then expects the syscall number (1->200 something) in eax.

Re:Nbr of interrupts

Posted: Tue Jul 06, 2004 9:08 am
by ManOfSteel
Hello,
How many software interrupts can I have?
There's enough of them. Even the biggest OSes (like Linux or Windows) only use a few compared to the number available.
Cause if I should use this instead of call gates
What's the problem of using call gates? They function and are set up in a similar way than interrupts and they are known to be even faster (AFAIK).
I spose I need lots of them
You can use more than one routine for every interrupt/call gate.