X86 segment Mechanism

Source: Internet
Author: User

X86 protected Mode uses a segmentation management mechanism that divides memory into blocks of memory represented by the start address and length limits for these two-dimensional parameters, which are called segments (Segment).

Keyword: Segment descriptor: Describes the properties of a segment.

Segment Description Table: An array that contains multiple segment descriptors.

Segment selector: Used to locate the index of a table item in a Segment description table.

The segment descriptor has three parameters: the Subgrade address, the segment bounds (limit), and the segment attribute (Attributes). The CPU finds the corresponding segment descriptor in the Segment Descriptor table as an index by selecting the contents of the middle selector in the logical address (segment selection sub + segment offset), and the linear address is obtained based on the segment descriptor's middle base address + segment offset (Linear addresses).

Segment selection is divided into three parts, the segment index (high 13 bits), the table indicates the bit (table Indicator,ti): 2, 3 bits, and select which descriptor table should be accessed. 0 means that the Global Descriptor Descriptor (GDT) should be accessed, and 1 means that the local descriptor descriptor (LDT) should be accessed. Request Privilege level (requested Privilege LEVEL,RPL) first bit.

X86 segment Mechanism

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.