source: mainline/doc/mm@ 511b45f

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 511b45f was 992bbb97, checked in by Jakub Jermar <jakub@…>, 20 years ago

Start with generic 4-level page table interface.

Usual cleanup.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1Memory management
2=================
3
4SPARTAN kernel deploys generic interface for 4-level page tables,
5no matter what the real underlying hardware architecture is.
6
7
8 VADDR
9 +-----------------------------------------------------------------------------+
10 | PTL0_INDEX | PTL1_INDEX | PTL2_INDEX | PTL3_INDEX | OFFSET |
11 +-----------------------------------------------------------------------------+
12
13
14 PTL0 PTL1 PTL2 PTL3
15 +--------+ +--------+ +--------+ +--------+
16 | | | | | PTL3 | -----\ | |
17 | | | | +--------+ | | |
18 | | +--------+ | | | | |
19 | | | PTL2 | -----\ | | | | |
20 | | +--------+ | | | | | |
21 | | | | | | | | +--------+
22 +--------+ | | | | | | | FRAME |
23 | PTL1 | -----\ | | | | | | +--------+
24 +--------+ | | | | | | | | |
25 | | | | | | | | | | |
26 | | | | | | | | | | |
27 +--------+ \----> +--------+ \----> +--------+ \----> +--------+
28 ^
29 |
30 |
31 +--------+
32 | PTL0 |
33 +--------+
34
35
36PTL0 Page Table Level 0 (Page Directory)
37PTL1 Page Table Level 1
38PTL2 Page Table Level 2
39PTL3 Page Table Level 3
40
41PTL0_INDEX Index into PTL0
42PTL1_INDEX Index into PTL1
43PTL2_INDEX Index into PTL2
44PTL3_INDEX Index into PTL3
45
46VADDR Virtual address for which mapping is looked up
47FRAME Physical address of memory frame to which VADDR is mapped
48
49
50On architectures whose hardware has fewer levels, PTL2 and, if need be, PTL1 are
51left out. TLB-only architectures are to define custom format for software page
52tables.
Note: See TracBrowser for help on using the repository browser.