Interrupts/PIC

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
Whodoo

Interrupts/PIC

Post 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?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Interrupts/PIC

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