PIC and 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
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

PIC and IDT

Post by Neo »

If I set the location of an INT before I switch to real mode, will that INT still be mapped to the same place after I switch to PMODE?  If no then what is the proper format for an IDT?
Thanks A lot!
-Neo
Only Human
carbonBased

RE:PIC and IDT

Post by carbonBased »

simply put, the rmode idt and pmode idt are not the same, no.

This is a fairly involved question, however.  To find out about the pmode idt, I suggest looking at the Intel manuals.  The pmode idt is much more complicated them the rmode idt, which contains only a segment:offset pair.  By contract, the pmode idt contains different types of interrupts (call gates, task gates, traps, ints, etc) and also defines which privelege levels can access them (ie, security features).

Cheers,
Jeff
Post Reply