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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Geode</strong> <strong>GXLV</strong> <strong>Processor</strong> <strong>Series</strong><strong>Processor</strong> Programming (Continued)3.5.2 Segment MechanismsMemory is divided into contiguous regions called “segments.”The segments allow the partitioning of individualelements of a program. Each segment provides a zeroaddress-based private memory for such elements ascode, data, and stack space.The segment mechanisms select a segment in memory.Memory is divided into an arbitrary number of segments,each containing usually much less than the 2 32 byte (4GB) maximum.There are two segment mechanisms, one for real and virtual8086 operating modes, and one for protected mode.3.5.2.1 Real Mode Segment MechanismIn real mode operation, the CPU addresses only the lowest1 MB of memory. In this mode a selector located inone of the segment registers is used to locate a segment.To calculate a physical memory address, the 16-bit segmentbase address located in the selected segment registeris multiplied by 16 and then a 16-bit offset address isadded. The resulting 20-bit address is then extended withtwelve zeros in the upper address bits to create a 32-bitphysical address.The value of the selector (the INDEX field) is multiplied by16 to produce a base address (see Figure 3-4). The baseaddress is summed with the instruction offset value to producea physical address.3.5.2.2 Virtual 8086 Mode Segment MechanismIn virtual 8086 mode the operation is performed as in realmode except that a paging mechanism is added. Whenpaging is enabled, the paging mechanism translates thelinear address into a physical address using cached lookuptables (refer to Section 3.5.4 “Paging Mechanism” onpage 77).000h12 High Order Address BitsOffset MechanismOffset Address16122032 Linear Address(Physical Address)Selected SegmentRegister16X1620Base AddressFigure 3-4. Real Mode Address Calculationwww.national.com 66 Revision 1.3

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

Saved successfully!

Ooh no, something went wrong!