Can I reload the GDT?

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
skwee
Member
Member
Posts: 73
Joined: Mon Jan 12, 2009 3:11 am

Can I reload the GDT?

Post 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 :)
TCP/IP: Connecting people...
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: Can I reload the GDT?

Post 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.
User avatar
skwee
Member
Member
Posts: 73
Joined: Mon Jan 12, 2009 3:11 am

Re: Can I reload the GDT?

Post by skwee »

Thanks :)
TCP/IP: Connecting people...
Post Reply