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>Processor</strong> Programming (Continued)3.5.3.3 Task, Gate, Interrupt, and Application andSystem DescriptorsBesides segment descriptors there are descriptors usedin task switching, switching between tasks with differentpriority and those used to control interrupt functions:• Interrupt Descriptors• Application and System Segment Descriptors• Gate Descriptors• Task State Segment DescriptorsAll descriptors have some things in common. They are alleight bytes in length and have three fields (BASE, LIMIT,and TYPE). The BASE field defines the starting locationfor the table or segment. The LIMIT field defines the sizeand the TYPE field depends on the type of descriptor.One of the main functions of the TYPE field is to definethe access rights to the associated segment or table.Interrupt DescriptorsThe Interrupt Descriptor Table is an array of 256 8-byte (4-byte for real mode) interrupt descriptors, each of which isused to point to an interrupt service routine. Every interruptthat may occur in the system must have an associatedentry in the IDT. The contents of the IDTR arecompletely visible to the programmer through the use ofthe SIDT instruction.The IDT is defined by the Interrupt Descriptor Table Register(IDTR). Some texts refer to this register as an IDTdescriptor.ThefollowinginstructionsareusedinconjunctionwiththeIDTR:• LIDT - Load memory to IDTR• SIDT-StoreIDTRtomemoryThe IDTR is set up in real mode using the LIDT instruction.This is possible as the LIDT instruction is only one oftwo instructions that directly load a linear address (insteadof a segment relative address) in protected mode (theother instructions is LGDT).As previously shown in Table 3-20 on page 70, the IDTRcontains a BASE ADDRESS field and a LIMIT field thatdefine the IDT tables.Application and System Segment DescriptorsThe bit structure and bit definitions for segment descriptorsare shown in Table 3-21 and Table 3-22 on page 72,respectively. The explanation of the TYPE field is showninTable3-23onpage73.<strong>Geode</strong> <strong>GXLV</strong> <strong>Processor</strong> <strong>Series</strong>Table 3-21. Application and System Segment Descriptors31 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0Memory Offset +4BASE[31:24] G D 0 AVLLIMIT[19:16] P DPL S TYPE BASE[23:16]Memory Offset +0BASE[15:0]LIMIT[15:0]Revision 1.3 71 www.national.com

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

Saved successfully!

Ooh no, something went wrong!