Anonymous user
GDT Tutorial: Difference between revisions
m
fix typos, missing verb
[unchecked revision] | [unchecked revision] |
(fixed unbalanced parenthesis, will no longer throw errors) |
m (fix typos, missing verb) |
||
Line 12:
: a register of your CPU that refers to a segment for a special use (e.g. <tt>SS</tt>, <tt>CS</tt>, <tt>DS</tt> ...)
; Selector
: a reference to a descriptor you can load into a segment register; the selector is an offset of a descriptor table entry. These entries are 8 bytes long. Therefore, bits 3 and up only declare the descriptor table entry offset, while bit 2 specifies if this selector is a GDT or LDT selector (LDT - bit set, GDT - bit cleared), and bits 0 - 1 declare the ring level that needs to
; Descriptor
: a memory structure (part of a table) that tells the CPU the attributes of a given segment
|