Skip to content

Commit ae9df32

Browse files
committed
docs: memory layout
1 parent 4ea0578 commit ae9df32

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/mem_layout.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Start Sz P4Idx Desc
2+
/end P3Idx
3+
--- --- --- ---
4+
0x0000_0000_0000_0000 128T 0~255 userspace memory
5+
0x0000_7fff_ffff_ffff 0 (4k pages)
6+
7+
0x0000_8000_0000_0000 ~2^64 - unused hole due to sign extension
8+
0xffff_7fff_0000_0000 - (not mapped)
9+
10+
0xffff_8000_0000_0000 64G 256 Identical mapping of the whole physical
11+
0xffff_800f_ffff_ffff 0~63 memory (1G pages)
12+
13+
0xffff_8010_0000_0000 64G 256 Hole
14+
0xffff_801f_ffff_ffff 64~127 (not mapped)
15+
16+
0xffff_8020_0000_0000 64G 256 Kernel image (text and data) (linker)
17+
0xffff_802f_ffff_ffff 128~191 (1G pages)
18+
19+
0xffff_8030_0000_0000 64G 256 Kernel Heap
20+
0xffff_803f_ffff_ffff 192~255 (4K pages)
21+
22+
NOTE: "offset" doesn't count the sign extension, i.e. ignoring the 16 MSBs of
23+
ones.

0 commit comments

Comments
 (0)