Global Descriptor Table: Difference between revisions

formatted rest of tables
[unchecked revision][unchecked revision]
m (cr formatting)
(formatted rest of tables)
Line 9:
{| class="wikitable"
|+ GDT Descriptor (GDTR)
!style="width: 60%; text-align: left; border-right: none;" |79 (64-bit mode) /<br> 48 (32-bit mode)
!style="width: 6%; text-align: right; vertical-align: bottom; border-left: none;" |16
!style="width: 17%; text-align: left; vertical-align: bottom; border-right: none;" |15
!style="width: 17%; text-align: right; vertical-align: bottom; border-left: none;" |0
|-
|style="border-right: none;" |'''Offset'''<br>63 (64-bit mode) /<br> 31 (32-bit mode)
|style="text-align: right; vertical-align: bottom; border-left: none;" |<br>0
|style="border-right: none;" |'''Size'''<br><br>15
|style="text-align: right; vertical-align: bottom; border-left: none;" |<br>0
|}
* '''Size:''' The size of the table in bytes subtracted by 1. This subtraction occurs because the maximum value of '''Size''' is 65535, while the '''GDT''' can be up to 65536 bytes in length (8192 entries). Further, no '''GDT''' can have a size of 0 bytes.
Line 81:
!style="text-align: right; border-left: none;"|0
|-
|colspan=5 style="text-align: left; border-right: none;"|'''Base'''<br>15
|style="text-align: right; border-left: none;"|<br>0
|colspan=3 style="text-align: left; border-right: none;"|'''Limit'''<br>15
|style="text-align: right; border-left: none;"|<br>0
|}
Line 94:
For more information, see '''Section 3.4.5: Segment Descriptors''' and '''Figure 3-8: Segment Descriptor''' of the Intel Software Developer Manual, Volume 3-A.
 
{| class="wikitable" style="border-width: 3px; width: 640px;"
|+ Access byte
|+style="text-align: left;"|'''ACCESS BYTE:'''
|-
!style="width: 12.5%;"|7
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|7
|!style="padding: 2px; width: 76px; text-align: center; border-left: 1px 12.5%; border-right: none;"|6
|!style="padding: 2px; width: 75px; text-align: center12.5%; border-left: none; border-right: 1px ;"|5
!style="width: 12.5%;"|4
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|4
!style="width: 12.5%;"|3
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|3
!style="width: 12.5%;"|2
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|2
!style="width: 12.5%;"|1
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|1
!style="width: 12.5%;"|0
|style="padding: 2px; width: 76px; text-align: center; border-left: 1px ; border-right: 1px ;"|0
|-
|'''Pr'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''Pr'''
|colspan=2 |'''Privl'''
|style="padding: 2px; width: 76px; text-align: left ; border-left: 1px ; border-right: none;"|'''Privl'''
|'''S'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: none; border-right: 1px ;"|
|'''Ex'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''S'''
|'''DC'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''Ex'''
|'''RW'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''DC'''
|'''Ac'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''RW'''
|style="padding: 2px; width: 76px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''Ac'''
|}
 
Line 130 ⟶ 129:
* '''Ac:''' Accessed bit. Best left clear ('''0'''), the CPU will set it when the segment is accessed.
 
{| class="wikitable" style="border-width: 3px; width: 320px;"
|+ Flags
|+style="text-align: left;"|'''FLAGS:'''
|-
!style="width: 25%;"|3
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|3
!style="width: 25%;"|2
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|2
!style="width: 25%;"|1
|style="padding: 2px; width: 75px; text-align: center; border-left: 1px ; border-right: 1px ;"|1
!style="width: 25%;"|0
|style="padding: 2px; width: 76px; text-align: center; border-left: 1px ; border-right: 1px ;"|0
|-
|'''Gr'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''Gr'''
|'''Sz'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''Sz'''
|'''L'''
|style="padding: 2px; width: 75px; text-align: left ; border-left: 1px ; border-right: 1px ;"|'''L'''
|Reserved
|style="padding: 2px; width: 76px; text-align: left ; border-left: 1px ; border-right: 1px ;"|Reserved
|}