summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/pmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/include/pmap.h')
-rw-r--r--sys/i386/include/pmap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index 2378aa7..826c460 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/include/pmap.h
@@ -96,11 +96,12 @@
*/
#define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT)))
+/* Actual number of kernel page tables */
#ifndef NKPT
#ifdef PAE
-#define NKPT 120 /* actual number of kernel page tables */
+#define NKPT 240 /* Enough for 16GB (2MB page tables) */
#else
-#define NKPT 30 /* actual number of kernel page tables */
+#define NKPT 30 /* Enough for 4GB (4MB page tables) */
#endif
#endif
#ifndef NKPDE
OpenPOWER on IntegriCloud