summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pmap.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-07-06 22:36:28 +0000
committeralc <alc@FreeBSD.org>2008-07-06 22:36:28 +0000
commit2e2599b5d01f9e5f8ca6e1713c7d8ec33d9b2a92 (patch)
tree7c41eb940dafdf3fa7e3f260bc04970a3d1016f4 /sys/amd64/include/pmap.h
parent63f02baf0e5ce3db18056a08a90ca971fb12de6d (diff)
downloadFreeBSD-src-2e2599b5d01f9e5f8ca6e1713c7d8ec33d9b2a92.zip
FreeBSD-src-2e2599b5d01f9e5f8ca6e1713c7d8ec33d9b2a92.tar.gz
Change create_pagetables() and pmap_init() so that many fewer page table
pages have to be preallocated by create_pagetables().
Diffstat (limited to 'sys/amd64/include/pmap.h')
-rw-r--r--sys/amd64/include/pmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 54b4484..049922b 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -111,11 +111,11 @@
/* Initial number of kernel page tables. */
#ifndef NKPT
-#define NKPT 2688
+#define NKPT 32
#endif
#define NKPML4E 1 /* number of kernel PML4 slots */
-#define NKPDPE howmany(NKPT, NPDEPG)/* number of kernel PDP slots */
+#define NKPDPE 6 /* 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