Page 1 of 1

Can I reload the GDT?

Posted: Thu Jan 15, 2009 12:01 pm
by skwee
Hello all :)
I'm so happy, things is going good :) very good :)
Anyway I want to ask, lets say I loaded GDT, entered pm mode (enabling pmbit in cr0) and did far jump, now I want to reload the GDT and load new IDT. Can I reload GDT? In Bochs I didn't get any exception or something like this.

Thanks a lot :)

Re: Can I reload the GDT?

Posted: Thu Jan 15, 2009 12:11 pm
by JohnnyTheDon
Yep. If the GDT didn't change (and you haven't activated paging and mapped the GDT somewhere else) there is no reason to reload it, but you shouldn't get an error for doing so. However, if you reload the GDT, the segments you have previously loaded do not change until you reload them.

Re: Can I reload the GDT?

Posted: Thu Jan 15, 2009 1:15 pm
by skwee
Thanks :)