Page 1 of 1

IRQ and IDT

Posted: Sun Nov 03, 2002 3:44 pm
by Tom
Ok..i've heard that the IDT should run in ring 3...So..

I'm ready to just get this overwith and get it done right so..

Where can I find and 100% complete IDT tutorial that handels everything? Like ring 3...(what is ring 2 for if 0 is kernel, 1 is (what is 1?) and what is 2, and 3 is protected?)

Thank you, and why Can't I use in from the keyboard with ints disabled?

Re:IRQ and IDT

Posted: Mon Nov 04, 2002 4:17 am
by PlayOS
Why is it that an IDT should run in ring 3?

Re:IRQ and IDT

Posted: Mon Nov 04, 2002 5:09 am
by Slasher
hi,
the IDT is a table for interrupts defined by the OS and its suppose to be in protected memory ie kernel space and does not run at all!!!
It only serves as a way of specifying to the cpu where to get the interrupt service routine for a particular interrupt and also provides various info on the way to call the ISR ie interrupt task gate,interrupt trap etc
hope this helps :)

Re:IRQ and IDT

Posted: Mon Nov 04, 2002 12:16 pm
by Warmaster199
I always thought that the IDT should run in ring 0 like the kernel...

Re:IRQ and IDT

Posted: Mon Nov 04, 2002 5:24 pm
by Tom
ok..ring 0....but in and the C function inportb don't work still...