diff options
author | alc <alc@FreeBSD.org> | 2008-06-30 02:35:55 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-06-30 02:35:55 +0000 |
commit | 2ea095c0e86525920b5b09c9a7d262e7c27b916a (patch) | |
tree | 5a1cbd8874ead71844c46320319ffdcae1563b77 /sys/amd64 | |
parent | 87e572f6a6752bfac60ac55ece334f3f38aa8338 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/include/pmap.h | 2 |
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 */ |