GDT Tutorial: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m Corrected the "Selector" description in the "Survival Glossary"
Line 11:
: 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. ThereforTherefore, bits 3 and up only declaresdeclare the descriptor table entry offset , while bit 2 specifies if this selector is a GDT or LDT seloctor ,selector (LDT - bit set , GDT - bit cleared), and bits 0 - 1 declaresdeclare the ring level that needs to corespond to the descriptor table entry's DPL feildfield. ,If ifit itdoesn'st, not thena General Protection Fault occur ,occurs; if it's does corespond then the CPL level of the selector used changed accordinallyaccordingly.
; Descriptor
: a memory structure (part of a table) that tells the CPU the attributes of a given segment