summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pmap.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-06-30 02:35:55 +0000
committeralc <alc@FreeBSD.org>2008-06-30 02:35:55 +0000
commit2ea095c0e86525920b5b09c9a7d262e7c27b916a (patch)
tree5a1cbd8874ead71844c46320319ffdcae1563b77 /sys/amd64/include/pmap.h
parent87e572f6a6752bfac60ac55ece334f3f38aa8338 (diff)
downloadFreeBSD-src-2ea095c0e86525920b5b09c9a7d262e7c27b916a.zip
FreeBSD-src-2ea095c0e86525920b5b09c9a7d262e7c27b916a.tar.gz
Compute NKPDPE from NKPT. This reduces the number of knobs that must be
turned in order to change the size of the kernel virtual address space.
Diffstat (limited to 'sys/amd64/include/pmap.h')
-rw-r--r--sys/amd64/include/pmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index dfd66d1..7d2847a 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -115,7 +115,7 @@
#endif
#define NKPML4E 1 /* number of kernel PML4 slots */
-#define NKPDPE 5 /* number of kernel PDP slots */
+#define NKPDPE howmany(NKPT, NPDEPG)/* number of kernel PDP slots */
#define NUPML4E (NPML4EPG/2) /* number of userland PML4 pages */
#define NUPDPE (NUPML4E*NPDPEPG)/* number of userland PDP pages */
OpenPOWER on IntegriCloud