diff options
author | alc <alc@FreeBSD.org> | 2008-06-30 03:14:39 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-06-30 03:14:39 +0000 |
commit | c5776c1b8613f678a9d71f8defe33ad49781c758 (patch) | |
tree | 94a71a966c41243495c3e7ab1e7d0dfc2e4613e2 /sys/amd64 | |
parent | 2ea095c0e86525920b5b09c9a7d262e7c27b916a (diff) | |
download | FreeBSD-src-c5776c1b8613f678a9d71f8defe33ad49781c758.zip FreeBSD-src-c5776c1b8613f678a9d71f8defe33ad49781c758.tar.gz |
Document the layout of the address space, borrowing heavily from
http://lists.freebsd.org/pipermail/freebsd-amd64/2005-July/005578.html
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/vmparam.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h index b091495..755a7d9 100644 --- a/sys/amd64/include/vmparam.h +++ b/sys/amd64/include/vmparam.h @@ -148,8 +148,18 @@ /* * Virtual addresses of things. Derived from the page directory and * page table indexes from pmap.h for precision. - * Because of the page that is both a PD and PT, it looks a little - * messy at times, but hey, we'll do anything to save a page :-) + * + * 0x0000000000000000 - 0x00007fffffffffff user map + * 0x0000800000000000 - 0xffff7fffffffffff does not exist (hole) + * 0xffff800000000000 - 0xffff804020100fff recursive page table (512GB slot) + * 0xffff804020101000 - 0xfffffeffffffffff unused + * 0xffffff0000000000 - 0xffffff7fffffffff 512GB direct map mappings + * 0xffffff8000000000 - 0xfffffffe7fffffff unused (506GB) + * 0xfffffffe80000000 - 0xffffffffffffffff 6GB kernel map + * + * Within the kernel map: + * + * 0xffffffff80000000 KERNBASE */ #define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, NPDEPG-1, NPTEPG-1) |