Skip to content

x86 Segment Descriptor Tables

Related x86 tables that hold segment and system descriptors selected by processor mechanisms.

Core Idea

In x86 protected-mode segmentation, a segment descriptor table stores descriptors that software and the processor use to describe segments and certain system structures. The Global Descriptor Table (GDT) and Local Descriptor Table (LDT) are distinct tables. A segment selector identifies a table and an entry; the processor uses the selected descriptor when loading a segment register. The table stores metadata: it is the processor, not the table itself, that applies the architecture’s checks and address rules.[1][2]

How would you explain it like I'm…

The Memory Card Box

Imagine a box of cards. Each card describes one chunk of a computer's memory: where it starts, how big it is, and who's allowed to use it. A program hands over a ticket saying which box and which card. The computer's brain reads that card and checks the rules; the card itself just holds the information.

Lists That Describe Memory Pieces

Some computer chips, called x86 chips, can split memory into parts called segments. To keep track of them, the computer keeps lists called descriptor tables. Each entry, called a descriptor, describes a segment, like where it starts, how big it is and what's allowed. There are two main lists: the Global Descriptor Table (GDT) and the Local Descriptor Table (LDT). A program uses a number called a selector, which says which list and which entry to use. The table only stores the information; it's the chip that actually checks the rules when it uses an entry.

GDT and LDT Segment Tables

In x86 protected-mode segmentation, x86 Segment Descriptor Tables store descriptors, records that describe memory segments and certain system structures for both software and the processor. There are two distinct tables: the Global Descriptor Table (GDT) and the Local Descriptor Table (LDT). A segment selector picks which table to use and which entry within it. When software loads a segment register, the processor uses the selected descriptor. A key point is the division of labor: the table only stores metadata, while the processor is what enforces the architecture's checks and address rules based on it.

 

In x86 protected-mode segmentation, x86 Segment Descriptor Tables hold segment descriptors, data structures that software and the processor use to describe segments and certain system structures. The architecture defines two distinct tables: the Global Descriptor Table (GDT) and the Local Descriptor Table (LDT). A segment selector encodes which table to consult and an index identifying an entry in it. When a segment register is loaded with a selector, the processor fetches the selected descriptor and uses it for that segment. The separation of roles is essential: the descriptor table is passive metadata, and the processor is the agent that applies the architecture's protection checks and address-formation rules using that metadata.

How the Tables Are Selected

A selector includes an index and a table-indicator bit. With that bit clear, the index selects an entry in the GDT; with it set, the index selects an entry in the current LDT. The Global Descriptor Table Register (GDTR) gives the GDT’s linear base address and table limit. The Local Descriptor Table Register (LDTR) identifies the current LDT; its descriptor is selected from the GDT. An LDT is therefore not simply another name for the GDT, even though the structures are related.[1][2]

Descriptors can contain a segment base, limit and attributes, including access information. The GDT can also hold system descriptors, such as an LDT or task-state segment descriptor. Exact descriptor formats and permitted operations depend on descriptor type and processor mode; the Interrupt Descriptor Table is another system table, not the GDT or LDT.[1][2]

Loading and Use

When a valid non-null selector is loaded into a segment register in protected mode, the processor obtains and checks the relevant descriptor and loads descriptor information into a hidden part of that register. Subsequent use relies on that loaded state; a description that says the table is fetched afresh on every memory reference misses this cache. To make modified descriptor information take effect in a cached segment register, software must reload it as appropriate; Intel specifically notes software responsibility for reloading segment registers when processors share modified descriptor tables.[2]

For example, a protected-mode operating system may arrange descriptors for code and data segments in a GDT and load their selectors into the appropriate segment registers. A selector that instead names an LDT entry uses a separately established LDT. The choice of table does not alone prove a memory access valid: descriptor type, privilege and other architectural checks still matter.[1][2]

Boundaries

The table is one component of a segmentation mechanism, not the complete address translation path. Paging can subsequently translate linear addresses. In 64-bit mode, segmentation is restricted and some segment base and limit behavior differs from legacy protected mode; it is unsafe to assume that every legacy segmentation rule applies unchanged. Descriptor sizes and rules likewise vary by descriptor kind and mode.[1][2]

This x86 comparison does not equate the GDT with the LDT, and does not assert that Multics or other architectures use x86 selector and table formats. A GDT/LDT comparison is distinct from a general theory of memory protection or paging.[1]

Neighborhood in Abstraction Space

x86 Segment Descriptor Tables sits in a sparse region of the domain-specific corpus (97th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Advanced Micro Devices, AMD64 Architecture Programmer’s Manual Volume 2 System Programming publication 24593 revision 3.42, publication 24593, revision 3.42 (March 2024), chapter 4, especially figures 4-1 and 4-9. AMD-authored manual, independently accessible mirror. registry ↩a ↩b ↩c ↩d ↩e ↩f

[2] Intel, Intel 64 and IA-32 Architectures Software Developer’s Manual Volume 3A order 253668 revision 090, February 2026, sections 2.4.1 and 3.4, GDTR, descriptor tables and segment-register descriptor cache. registry ↩a ↩b ↩c ↩d ↩e ↩f