| 数据搜索系统,热门电子元器件搜索 |
|
GXM 数据表(PDF) 67 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
GXM 数据表(HTML) 67 Page - National Semiconductor (TI) |
|
67 / 244 page ![]() Revision 3.1 67 www.national.com Processor Programming (Continued) 3.7.3.2 Task, Gate and Interrupt Descriptors Besides segment descriptors there are descriptors used in task switching, switching between tasks with different priority and those used to control interrupt functions: • Task State Segment Table Descriptors • Gate Table Descriptors • Interrupt Descriptors. All descriptors have some things in common. They are all eight bytes in length and have three fields (BASE, LIMIT and TYPE). The BASE field defines the starting location for the table or segment. The LIMIT field defines the size and the TYPE field depends on the type of descriptor. One of the main functions of the TYPE field is to define the access rights to the associated segment or table. Interrupt Descriptor Table The Interrupt Descriptor Table is an array of 256 8-byte (4- byte for real mode) interrupt descriptors, each of which is used to point to an interrupt service routine. Every inter- rupt that may occur in the system must have an associ- ated entry in the IDT. The contents of the IDTR are completely visible to the programmer through the use of the SIDT instruction. The IDT descriptor table is defined by the Interrupt Descriptor Table Register (IDTR). Some texts refer to this register as an IDT descriptor. Thefollowing instructions areusedinconjunction with the IDTR registers: • LIDT - Load memory to IDTR • SIDT - StoreIDTR tomemory The IDTR is set up in REAL mode using the LIDT instruc- tion. This is possible as the LIDT instructions is only one of two instructions that directly load a linear address (instead of a segment relative address) in protective mode. As previously shown in Table 3-20, the IDTR contains a BASE ADDRESS field and a LIMIT field that define the IDT tables. 3.7.4 Descriptor Bit Structure The bit structure for application and system descriptors is shown in Table 3-21. The explanation of the TYPE field is shown in Table 3-23 on page 68. Table 3-21. Application and System Segment Descriptors 31 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8765 43210 Memory Offset +4 BASE[31:24] G D 0 A V L LIMIT[19:16] P DPL S TYPE BASE[23:16] Memory Offset +0 BASE[15:0] LIMIT[15:0] Table 3-22. Application and System Segment Descriptors Bit Definitions Bit Memory Offset Name Description 31:24 +4 BASE Segment Base Address: Three fields which collectively define the base location for the segment in 4 GB physical address space. 7:0 +4 31:16 +0 19:16 +4 LIMIT Segment Limit: Two fields that define the size of the segment based on the Segment Limit Granularity Bit. If G = 1: Limit value interpreted in units of 4 KB. If G = 0: Limit value is interpreted in bytes. 15:0 +0 23 +4 G Segment Limit Granularity Bit: Defines LIMIT multiplier. If G = 1: Limit value interpreted in units of 4 KB. Segment size ranges from 1 byte to 1 MB. If G = 0: Limit value is interpreted in bytes. Segment size ranges from 4 KB to 4 GB. 22 +4 D Default Length for Operands and Effective Addresses: If D = 1: Code segment = 32-bit length for operands and effective addresses If D = 0: Code segment = 16-bit length for operands and effective addresses If D = 1: Data segment = Pushes, calls and pop instructions use 32-bit ESP register If D = 0: Data segment = Stack operations use 16-bit SP register 20 +4 AVL Segment Available: This field is available for use by system software. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |