unfilled IDT

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

unfilled IDT

Post by Whodoo »

lets say I want to set up a IDT, but the only thing Im interrested in is an IRQ...so my IDT would just be filled with gibberish except for this special IRQ..
but if e.g. an exception occurs.. the CPU will then try to run a ISR, but since I only filled my IDT with information about the IRQ interrupt, what will happen? It will try to read the IDT(which is initialized to about anything)? Cause I read I only need to fill the IDT wherever I want, and right now I dont care about exceptions..but if they occur, what happens if I havent filled in the "Beginning of the IDT, exceptions"?
Curufir

Re:unfilled IDT

Post by Curufir »

Triple fault resulting in reboot.
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:unfilled IDT

Post by Pype.Clicker »

really, i *strongly* suggest you at least put a "cli; hlt" handler in your exceptions descriptors. It will save you headaches later.
Post Reply