Page 1 of 1

Any easy way to check if my GDT works?

Posted: Sat Jan 27, 2018 11:05 am
by j4cobgarby
As far as I can tell, I've set up a GDT, and it seems that the logical thing to do now is to set up an IDT.
How can I check if my GDT does in fact work? My kernel does run, without any obvious errors.
I need to know if it works before implementing an IDT, right? Do I just have to trust that it does?

Re: Any easy way to check if my GDT works?

Posted: Sat Jan 27, 2018 11:38 am
by Korona
You can check the segment limits etc. in bochs or some other debugger. But other than that, your GDT works if your kernel does not raise random general protection exceptions or triple fault.