Segment descriptor
In memory addressing for computer architectures, segment descriptors are a part of the segmentation unit, used for translating a logical address to a linear address or to the address of a page table.[src] Segment descriptors describe the memory segment referred to in the logical address.[src]
In memory addressing for computer architectures, segment descriptors are a part of the segmentation unit, used for translating a logical address to a linear address or to the address of a page table.[src] Segment descriptors describe the memory segment referred to in the logical address.[src] G=Granularity : If clear, the limit is in units of bytes, with a maximum of 2 20 bytes.[src] If set, the limit is in units of 4096-byte pages, for a maximum of 2 32 bytes.[src] D/B D = Default operand size : If clear, this is a 16-bit code segment; if set, this is a 32-bit segment.[src] B = Big: If set, the maximum offset size for a data segment is increased to 32-bit 0xffffffff.[src] Otherwise it's the 16-bit max 0x0000ffff.[src] Essentially the same meaning as "D".[src] L=Long : If set, this is a 64-bit segment (and D must be zero), and code in this segment uses the 64-bit instruction encoding.[src] "L" cannot be set at the same time as "D" aka "B".[src] (Bit 21 in the image) AVL=Available : For software use, not used by hardware (Bit 20 in the image with the label A) P=Present : If clear, a "segment not present" exception is generated on any reference to this segment DPL=Descriptor privilege level : Privilege level (ring) required to access this descriptor S=System Segment : If clear, this is system segment, used to handle interrupts or store LDT segment descriptors.[src] If 1, this is Code/Data segment.[src] Type: If set, this is a code segment descriptor.[src] If clear, this is a data/stack segment descriptor, which has "D" replaced by "B", "C" replaced by "E"and "R" replaced by "W".[src] This is in fact a special case of the 2-bit type field, where the preceding bit 12 cleared as "0" refers to more internal system descriptors, for LDT, LSS, and gates.[src] C=Conforming : Code in this segment may be called from less-privileged levels.[src] E=Expand-Down: If clear, the segment expands from base address up to base+limit.[src] If set, it expands from maximum offset down to limit, a behavior usually used for stacks.[src] R=Readable : If clear, the segment may be executed but not read from.[src] W=Writable : If clear, the data segment may be read but not written to.[src] A=Accessed : This bit is set to 1 by hardware when the segment is accessed, and cleared by software.[src] ===IBM S/370 and successors=== The S/370, S/370-XA, ESA/370 and ESA/390 segment table entries (STEs) are one word long.[src] All processors running in S/370 mode used the same format, but not all supported the common-segment facility and the protected segment facility.[src] XA introduced a new format and replaced segment protection with page protection.[src] With z/Architecture the STE is a doubleword.[src] ====The S/370 segment-table entry==== The segment-table entry for the S/370 has the following form Page-Table Origin Left 21 bits of Page Table Origin (PTO), has 3 zero bits appended TBL Table length in units that are of the maximum allowed size, offset by one unit.[src] P Segment-Protection Bit C Common-Segment Bit I Segment-Invalid Bit ====The S/370-XA through S/390 segment-table entry==== The segment-table entry for the S/370-XA, ESA/370 and ESA/390 has the following form Page-Table Origin Left 25 bits of PTO, has 6 zero bits appended I Invalid C Common-Segment Bit TBL Table length in 64-byte units, offset by one unit ====The z/Architecture segment-table entry==== In the original z/Architecture, a segment is always subject to paging and the Segment-Table Entry always points to a page table.[src] However, on a model equipped with the Enhanced-DAT Facility 1, the Enhanced-DAT-enablement control (bit 40) o The segment-table entry for the z/Architecture has the following forms Page-Table Origin Left 53 bits of PTO, has 11 zero bits appended FC=0 Format Control - paged segment P DAT-protection (fetch protect) I Segment-Invalid Bit CS Common-Segment Bit TT=00 Table Type Segment ACCF-Validity Control (AV) Use ACC to check key ACC Access control key F Fetch protection when AV=1 FC=1 Format Control - points to absolute address P DAT-protection (fetch protect) Instruction-Execution-Protection (IEP) Control Instruction execution prohibited I Segment-Invalid Bit CS Common-Segment Bit TT=00 Table Type Segment ==See also== Burroughs large systems descriptors Memory segment Memory address ==Notes== ==References== z-14 ==Further reading== ==External links== Intel 80386 Reference Programmer's Manual - Segment Translation[src]
30 sentences · 30 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Segment descriptor." encyclopegia.org, 2026, https://encyclopegia.org/wiki/segment-descriptor. Accessed 27 November 2026.
Chicago
"Segment descriptor." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/segment-descriptor.
APA
encyclopegia.org. (2026). Segment descriptor. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/segment-descriptor
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON