diff options
author | Alan Cox <alc@FreeBSD.org> | 2008-06-30 03:14:39 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2008-06-30 03:14:39 +0000 |
commit | 17e2138882a3272ff246036d8de1b255d6d62010 (patch) | |
tree | 94a71a966c41243495c3e7ab1e7d0dfc2e4613e2 /sys/amd64/include/vmparam.h | |
parent | 67ce249ac9002e9c2806c068ee6c548f10de7fe1 (diff) | |
download | src-17e2138882a3272ff246036d8de1b255d6d62010.tar.gz src-17e2138882a3272ff246036d8de1b255d6d62010.zip |
Document the layout of the address space, borrowing heavily from
Notes
Notes:
svn path=/head/; revision=180109
Diffstat (limited to 'sys/amd64/include/vmparam.h')
-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 b0914953e248..755a7d9824e0 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) |