diff options
author | ru <ru@FreeBSD.org> | 2006-11-13 20:33:54 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-11-13 20:33:54 +0000 |
commit | 9c4d5bd7a3fa5429413c842e1b0e7eecb56b92ab (patch) | |
tree | d991955a13f03a7ba22ef710befdf8b5b708d7d0 /sys/amd64/include/pmap.h | |
parent | a781fbf35b57dd3a975e6dace3e55491c1d0419e (diff) | |
download | FreeBSD-src-9c4d5bd7a3fa5429413c842e1b0e7eecb56b92ab.zip FreeBSD-src-9c4d5bd7a3fa5429413c842e1b0e7eecb56b92ab.tar.gz |
Fix NKPT comments to match reality. Note that the current value
of NKPT is no longer enough to run amd64 with 16G of RAM, as it
doesn't have space for mapping a kernel (16M kernel would require
additionally 8 page tables).
Diffstat (limited to 'sys/amd64/include/pmap.h')
-rw-r--r-- | sys/amd64/include/pmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 22ec67c..df89589 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -101,9 +101,10 @@ ((unsigned long)(l2) << PDRSHIFT) | \ ((unsigned long)(l1) << PAGE_SHIFT)) -/* Initial number of kernel page tables */ +/* Initial number of kernel page tables. */ #ifndef NKPT -#define NKPT 240 /* Enough for 16GB (2MB page tables) */ +/* 240 page tables needed to map 16G (120B "struct vm_page", 2M page tables). */ +#define NKPT 240 #endif #define NKPML4E 1 /* number of kernel PML4 slots */ |