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)Task State Segments DescriptorsThe CPU enables rapid task switching using JMP andCALL instructions that refer to Task State Segment (TSS)descriptors. During a switch, the complete task state ofthe current task is stored in its TSS, and the task state ofthe requested task is loaded from its TSS. The TSSs aredefined through special segment descriptors and gates.The Task Register (TR) holds 16-bit descriptors that containthe base address and segment limit for each taskstate segment. The TR is loaded and stored via the LTRand STR instructions, respectively. The TR can beaccessed only during protected mode and can be loadedwhen the privilege level is 0 (most privileged). When theTR is loaded, the TR selector field indexes a TSS descriptorthat must reside in the Global Descriptor Table (GDT).Only the 16-bit selector of a TSS descriptor in the TR isaccessible. The BASE, TSS LIMIT and ACCESS RIGHTfields are program invisible.During task switching, the processor saves the currentCPU state in the TSS before starting a new task. The TSScan be either a 386/486-type 32-bit TSS (see Table 3-26) or a286-type 16-bit TSS (see Table 3-27).Task Gate Descriptors. A task gate descriptor providescontrolled access to the descriptor for a task switch. TheDPL of the task gate is used to control access. The selector’sRPL and the CPL of the procedure must be a higherlevel (numerically less) than the DPL of the descriptor.The RPL in the task gate is not used.TheI/OMapBaseAddressfieldinthe32-bitTSSpointsto an I/O permission bit map that often follows the TSS atlocation +68h.<strong>Geode</strong> <strong>GXLV</strong> <strong>Processor</strong> <strong>Series</strong>Table 3-26. 32-Bit Task State Segment (TSS) Table31 16 15 0I/O Map Base Address 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 T +64h0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Selector for Task’s LDT +60h0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 GS +5Ch0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FS +58h0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DS +54h0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SS +50h0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CS +4Ch0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ES +48hEDI +44hESI +40hEBP+3ChESP +38hEBX +34hEDX +30hECX+2ChEAX +28hEFLAGS +24hEIP +20hCR3+1Ch0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SS for CPL = 2 +18hESP for CPL = 2 +14h0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SS for CPL = 1 +10hESP for CPL = 1+Ch0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SS for CPL = 0 +8hESP for CPL = 0 +4h0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Back Link (Old TSS Selector) +0hNote: 0=ReservedRevision 1.3 75 www.national.com

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

Saved successfully!

Ooh no, something went wrong!