diff options
-rw-r--r-- | sys/amd64/include/pmap.h | 3 | ||||
-rw-r--r-- | sys/i386/include/pmap.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 15b91c9..3640e2f 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -97,8 +97,9 @@ ((unsigned long)(l2) << PDRSHIFT) | \ ((unsigned long)(l1) << PAGE_SHIFT)) +/* Initial number of kernel page tables */ #ifndef NKPT -#define NKPT 120 /* initial number of kernel page tables */ +#define NKPT 240 /* Enough for 16GB (2MB page tables) */ #endif #define NKPML4E 1 /* number of kernel PML4 slots */ 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 |