load GDT?
load GDT?
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?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:load GDT?
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.