12.07.2015 Views

Geode GXLV Processor Series Low Power Integrated x86 Solutions

Geode GXLV Processor Series Low Power Integrated x86 Solutions

Geode GXLV Processor Series Low Power Integrated x86 Solutions

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Processor</strong> Programming (Continued)3.5.2.3 Segment Mechanism in Protected ModeThe segment mechanism in protected mode is more complex.Basically as in real and virtual 8086 modes the offsetaddress is added to the segment base address to producea linear address (Figure 3-5). However, the calculationof the segment base address is based on thecontents of descriptor tables.If paging is enabled the linear address is further processedby the paging mechanism.A more detailed look at the segment mechanisms for realand virtual 8086 modes and protected modes is illustratedin Figure 3-6 on page 68. In protected mode, the segmentselector is cached. This is illustrated in Figure 3-7 on page69.3.5.2.4 Segment SelectorsThe segment registers are used to store segment selectors.In protected mode, the segment selectors aredivided in to three fields: the RPL, TI and INDEX fields asshown in Figure 3-6 on page 68.The segments are assigned permission levels to preventapplication program errors from disrupting operating programs.The Requested Privilege Level (RPL) determinesthe effective privilege level of an instruction. RPL = 0 indicatesthe most privileged level, and RPL = 3 indicates theleast privileged level. Refer to Section 3.9 “Protection” onpage 91.Descriptor tables hold descriptors that allow managementof segments and tables in address space while in protectedmode. The Table Indicator Bit (TI) in the selectorselects either the General Descriptor Table (GDT) or oneLocal Descriptor Table (LDT). If TI = 0, GDT is selected; ifTI =1, LDT is selected. The 13-bit INDEX field in the segmentselector is used to index a GDT or LDT.<strong>Geode</strong> <strong>GXLV</strong> <strong>Processor</strong> <strong>Series</strong>Offset Mechanism32Offset AddressSelector Mechanism32Segment BaseAddress32LinearAddressOptionalPaging Mechanism32PhysicalMemoryAddressFigure 3-5. Protected Mode Address CalculationRevision 1.3 67 www.national.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!