summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pmap.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-06-29 18:35:00 +0000
committeralc <alc@FreeBSD.org>2008-06-29 18:35:00 +0000
commit4a9078c9b0025dc0e579edc1488542b19900b611 (patch)
tree892c6debd2172b1cb6bcc0ad1f8d684cd3198e75 /sys/amd64/include/pmap.h
parent30064ea5558fbb0f72aa53243c1f46392ce135f2 (diff)
downloadFreeBSD-src-4a9078c9b0025dc0e579edc1488542b19900b611.zip
FreeBSD-src-4a9078c9b0025dc0e579edc1488542b19900b611.tar.gz
Increase the size of the kernel virtual address space to 6GB. Until the
maximum size of the kmem map can be greater than 4GB, there is little point in making the kernel virtual address space larger than 6GB. Tested by: kris@
Diffstat (limited to 'sys/amd64/include/pmap.h')
-rw-r--r--sys/amd64/include/pmap.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 9844d76..bda82cb 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -111,12 +111,11 @@
/* Initial number of kernel page tables. */
#ifndef NKPT
-/* 240 page tables needed to map 16G (120B "struct vm_page", 2M page tables). */
-#define NKPT 240
+#define NKPT 2288
#endif
#define NKPML4E 1 /* number of kernel PML4 slots */
-#define NKPDPE 1 /* number of kernel PDP slots */
+#define NKPDPE 5 /* number of kernel PDP slots */
#define NKPDE (NKPDPE*NPDEPG) /* number of kernel PD slots */
#define NUPML4E (NPML4EPG/2) /* number of userland PML4 pages */
@@ -133,7 +132,7 @@
#define KPML4I (NPML4EPG-1) /* Top 512GB for KVM */
#define DMPML4I (KPML4I-1) /* Next 512GB down for direct map */
-#define KPDPI (NPDPEPG-2) /* kernbase at -2GB */
+#define KPDPI (NPDPEPG-6) /* kernel map starts at -6GB */
/*
* XXX doesn't really belong here I guess...
OpenPOWER on IntegriCloud