Long time, no lurk.  ? about GDT and IDT descript.

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
Bart Grantham

Long time, no lurk.  ? about GDT and IDT descript.

Post by Bart Grantham »

Ok.  Long time, no visit.  I've been preoccupied and this OS thing is very time consuming.  So, I'm still stuck on enabling interrupts and I feel like I am stabbing in the dark.  I am coding in C (wherever possible) and using GRUB to boot and I have a very specific question:

If I set up an IDT (I think I fully grok that) and do all the proper INT remapping, IDTR initialization and IF setting, do I have to set up a GDT?  My IDT descriptors have to have a selector into the GDT/LDT that provides operating context, but can I get away with not having this?

Not that I mind setting up the GDT and whatnot, but enabling ints seems like SUCH a complicated procedure and there are apparently no places to stop and do a sanity check, therefore I don't want to try and bore through the GDT and IDT setup together blindly and make it even more complex than it already is.
Kernel Panic

Re: Long time, no lurk.  ? about GDT and IDT descr

Post by Kernel Panic »

I guess you have to set up GDT anyways, since you're working in protected mode :) . Or did you mean callgates or something like that?
Post Reply