Global Descriptor Table: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Combuster (talk | contribs)
→‎Structure: virtual = wrong
m →‎Structure: plural here ;)
Line 9: Line 9:
The <tt>offset</tt> is the linear address of the table itself, which means that paging applies. The <tt>size</tt> is the size of the table subtracted by 1. This is because the maximum value of <tt>size</tt> is 65535, while the GDT can be up to 65536 bytes (a maximum of 8192 entries). Further no GDT can have a size of 0.
The <tt>offset</tt> is the linear address of the table itself, which means that paging applies. The <tt>size</tt> is the size of the table subtracted by 1. This is because the maximum value of <tt>size</tt> is 65535, while the GDT can be up to 65536 bytes (a maximum of 8192 entries). Further no GDT can have a size of 0.


The table contain 8-byte entries. Each entry has a complex structure:
The table contains 8-byte entries. Each entry has a complex structure:


[[Image:GDT_Entry.png|frame|center|A GDT Entry]]
[[Image:GDT_Entry.png|frame|center|A GDT Entry]]