From 67ce249ac9002e9c2806c068ee6c548f10de7fe1 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 30 Jun 2008 02:35:55 +0000 Subject: [PATCH] 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. --- sys/amd64/include/pmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index dfd66d1f155..7d2847aea60 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 */ -- 2.45.2