Global Descriptor Table: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
m (Interwiki)
(→‎Structure: virtual = wrong)
Line 7: Line 7:
[[Image:Gdtr.png|frame|center|GDTR]]
[[Image:Gdtr.png|frame|center|GDTR]]


The <tt>offset</tt> is the virtual address of the table itself. 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 contain 8-byte entries. Each entry has a complex structure: