Page 1 of 1
Is page table and GDT the same thing?
Posted: Mon Feb 10, 2020 12:26 pm
by xunilams
I am confused, What're the differences between the "Page Table" concept and GDT?
Are the two the same? Alternatives? (if yes, they are alternatives so I could omit GDT forever and use Page Table only)?
Or GDT is just the implementation of the Page Table concept?
Re: Is page table and GDT the same thing?
Posted: Mon Feb 10, 2020 1:48 pm
by kzinti
Re: Is page table and GDT the same thing?
Posted: Mon Feb 10, 2020 1:52 pm
by nullplan
The two are completely and entirely unrelated. The GDT defines the segments in the system. Most OSes just make all the segments span the entire address space, but there are exceptions to this. Like the TSS, which actually needs a nonzero base and limit. Anyway, you usually need the segments to set up other attributes, like the CPL or the default instruction size.
The page tables on the other hand define the pages, that is, the mapping from virtual to physical addresses. Altogether different concept.
Re: Is page table and GDT the same thing?
Posted: Mon Feb 10, 2020 2:10 pm
by xunilams
kzinti wrote:Is using a search engine so hard?
Thank you.
I just wanted to understand relationship between, but I found this.
thanks again.
Re: Is page table and GDT the same thing?
Posted: Mon Feb 10, 2020 3:31 pm
by kzinti
That's a pretty good overall view of the memory system.
Re: Is page table and GDT the same thing?
Posted: Mon Feb 10, 2020 3:39 pm
by xunilams
nullplan wrote:The two are completely and entirely unrelated. The GDT defines the segments in the system. Most OSes just make all the segments span the entire address space, but there are exceptions to this. Like the TSS, which actually needs a nonzero base and limit. Anyway, you usually need the segments to set up other attributes, like the CPL or the default instruction size.
The page tables on the other hand define the pages, that is, the mapping from virtual to physical addresses. Altogether different concept.
Thank you so much.