| 数据搜索系统,热门电子元器件搜索 |
|
GXM 数据表(PDF) 73 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
GXM 数据表(HTML) 73 Page - National Semiconductor (TI) |
|
73 / 244 page ![]() Revision 3.1 73 www.national.com Processor Programming (Continued) Bits [21:12] of the 32-bit linear address, referred to as the Page Table Index (PTI), locate a 32-bit entry in the sec- ond-level page table. This Page Table Entry (PTE) con- tains the base address of the desired page frame. The second-level page table addresses up to 1K individual page frames. A second-level page table is 4 KB in size and is itself a page. Bits [11:0] of the 32-bit linear address, the Page Frame Offset (PFO), locate the desired physical data within the page frame. Since the page directory table can point to 1 K page tables, and each page table can point to 1 K page frames, a total of 1 M page frames can be implemented. Since each page frame contains 4 KB, up to 4 GB of virtual memory can be addressed by the CPU with a single page directory table. Along with the base address of the page table or the page frame, each directory table entry or page table entry con- tains attribute bits and a present bit as illustrated in Table 3-28. If the present bit (P) is set in the DTE, the page table is present and the appropriate page table entry is read. If P = 1 in the corresponding PTE (indicating that the page is in memory), the accessed and dirty bits are updated, if necessary, and the operand is fetched. Both accessed bits are set (DTE and PTE), if necessary, to indicate that the table and the page have been used to translate a linear address. The dirty bit (D) is set before the first write is made to a page. The present bits must be set to validate the remaining bits in the DTE and PTE. If either of the present bits are not set, a page fault is generated when the DTE or PTE is accessed. If P = 0, the remaining DTE/PTE bits are avail- able for use by the operating system. For example, the operating system can use these bits to record where on the hard disk the pages are located. A page fault is also generated if the memory reference violates the page pro- tection attributes. Translation Look-Aside Buffer The translation look-aside buffer (TLB) is a cache for the paging mechanism and replaces the two-level page table lookup procedure for TLB hits. The TLB is a four-way set associative 32-entry page table cache that automatically keeps the most commonly used page table entries in the processor. The32-entryTLB,coupled witha4Kpage size, results in coverage of 128 KB of memory addresses. The TLB must be flushed when entries in the page tables are changed. The TLB is flushed whenever the CR3 regis- ter is loaded. An individual entry in the TLB can be flushed using the INVLPG instruction. DTE Cache The DTE cache caches the two most recent DTEs so that future TLB misses only require a single page table read to calculate the physical address. The DTE cache is dis- abled following reset and can be enabled by setting the DTE_EN bit in CCR4[4] (Index E8h). Table 3-28. Directory Table Entry (DTE) and Page Table Entry (PTE) Bit Name Description 31:12 BASE ADDRESS Base Address: Specifies the base address of the page or page table. 11:9 AVAILABLE Available: Undefined and Available to the Programmer 8:7 RSVD Reserved: Unavailable to programmer 6D Dirty Bit: PTE format — If = 1: Indicates that a write access has occurred to the page. DTE format — Reserved. 5A Accessed Flag: If set, indicates that a read access or write access has occurred to the page. 4:3 RSVD Reserved: Set to 0. 2U/S User/Supervisor Attribute: If = 1: Page is accessible by User at privilege level 3. If = 0: Page is accessible by Supervisor only when CPL ≤ 2. 1W/R Write/Read Attribute: If = 1: Page is writable. If = 0: Page is read only. 0P Present Flag: If = 1: The page is present in RAM and the remaining DTE/PTE bits are validated If = 0: The page is not present in RAM and the remaining DTE/PTE bits are available for use by the pro- grammer. |
|
链接网址 |
| 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 |