Page 1 of 1

Interrupts/PIC

Posted: Fri Jun 25, 2004 7:24 am
by Whodoo
Ive started to write a IDT and differens ISR:s but I got some questions and I didnt find a satisfying answer in all the docs I?ve been reading.. I know that you load the IDT, which?s telling which ISR:s to run when an interrupts occurs.. but what is the PIC and IRQs and what?s it for? Also, do I handle exceptions the same way as interrupts?

Re:Interrupts/PIC

Posted: Fri Jun 25, 2004 7:44 am
by Pype.Clicker
i guess http://www.osdev.org/osfaq2/index.php/HardWareIrq should answer most of your questions.

Very basically, IRQs are signals sent from hardware outside to the CPU ... The PIC is a chip that collect those signals, decide which priorities they have against each other and notifies the CPU of the most-prioritized one and then wait until the cpu acknowledge.