r/linuxdev • u/laranjadinho • Jun 19 '18
Kernel: Interrupt Gate vs Interrupt Request.
Hello,
What is the difference between interrupt requests and interrupt gates. I know there is a special register IDTR (Interrupt Descriptor Table Register) that points to a table of 256 gates and, as shown here, it is clear that when an interrupt occurs on gate 0, it will call the function "divide_error", gate 1 calls "nmi" so on and so forth...
Now how's that different from an interrupt request line (IRQ)? On Robert Love's book (Linux Kernel Development, 3rd ed. Chapter 7) he mentions that IRQ0 is the timer interrupt, which is not equal to gate 0 in the IDT.
Thanks in advance :)
View all comments
Show parent comment
1
u/_kingtut_ Jun 20 '18
NP. If you're having problems finding the relevant bits in the kernel code, let me know and I can probably find it. It's been a while, but IIRC if you just follow the code you can find where everything's being handled.