English
Language : 

GXM Datasheet, PDF (72/244 Pages) National Semiconductor (TI) – Geode™ GXm Processor Integrated x86 Solution with MMX Support
Processor Programming (Continued)
3.9 PAGING MECHANISM
The paging mechanism translates a linear address to its
corresponding physical address. If the required page is
not currently present in RAM, an exception is generated.
When the operating system services the exception, the
required page can be loaded into memory and the instruc-
tion restarted. Pages are either 4 KB or 1 MB in size. The
CPU defaults to 4 KB pages that are aligned to 4 KB
boundaries.
A page is addressed by using two levels of tables as illus-
trated in Figure 3-8. Bits[31:22] of the 32-bit linear
address, the Directory Table Index (DTI) are used to
locate an entry in the page directory table. The page
directory table acts as a 32-bit master index to up to 1 K
individual second-level page tables. The selected entry in
the page directory table, referred to as the directory table
entry (DTE), identifies the starting address of the second-
level page table. The page directory table itself is a page
and is, therefore, aligned to a 4 KB boundary. The physi-
cal address of the current page directory table is stored in
the CR3 control register, also referred to as the Page
Directory Base Register (PDBR).
Linear
Address
31
22 21
12 11
0
Directory Table Index
(DTI)
Page Table Index
(PTI)
Page Frame Offset
(PFO)
CR3
Control
Register
1
DTE Cache
2-Entry
Fully Associative
0
4 KB
DTE
0
Directory Table
Main TLB 31
32-Entry
4-Way Set
Associative 0
4 GB
4 KB
-4 KB
Physical Page
PTE
-0
0
Page Table
0
Memory
External Memory
Figure 3-8. Paging Mechanism
www.national.com
72
Revision 3.1