load 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
Moron

load GDT?

Post by Moron »

This is probably a stupid question but anyways...when Im setting the GDT and GDTD by using "lgdt", is the information in the GDT "loaded" and saved at some special location? Or is it just a pointer that?s being saved? Cause if the GDT isnt loaded and moved to some other place, I cant just "overwrite" the boot-loader code since the GDT table is there?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:load GDT?

Post by Pype.Clicker »

the base and limit of GDT is loaded into the GDTR (an internal register) and thus shouldn't be needed later. However, the GDT itself may be required later (when loading segment selectors) and thus should be placed to a "safe" memory area.
Post Reply