Nbr of interrupts

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
BrandonChris

Nbr of interrupts

Post 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
Curufir

Re:Nbr of interrupts

Post by Curufir »

There 256 possible IDT entries.

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

Re:Nbr of interrupts

Post 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.
ManOfSteel

Re:Nbr of interrupts

Post 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.
Post Reply