diff options
author | jchandra <jchandra@FreeBSD.org> | 2011-03-01 04:21:56 +0000 |
---|---|---|
committer | jchandra <jchandra@FreeBSD.org> | 2011-03-01 04:21:56 +0000 |
commit | e0a7412b69d0d38e94a7dc24079abc1806c8b04e (patch) | |
tree | 883bac2676d57af3313de7601639c13f1a915233 | |
parent | 6e5da1b5e7f274c5ed04f65e6b70a26f82f3873d (diff) | |
download | FreeBSD-src-e0a7412b69d0d38e94a7dc24079abc1806c8b04e.zip FreeBSD-src-e0a7412b69d0d38e94a7dc24079abc1806c8b04e.tar.gz |
Increase NKPT in case of n32 and n64 to support more physical memory.
On n32, vm_page_startup() needs more virtual mem to map vm_page structs.
The new value of 256 will allow us to support 16GB RAM.
-rw-r--r-- | sys/mips/include/pmap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/mips/include/pmap.h b/sys/mips/include/pmap.h index 10623a8..e710635 100644 --- a/sys/mips/include/pmap.h +++ b/sys/mips/include/pmap.h @@ -49,7 +49,11 @@ #include <machine/vmparam.h> #include <machine/pte.h> +#if defined(__mips_n32) || defined(__mips_n64) /* PHYSADDR_64BIT */ +#define NKPT 256 /* mem > 4G, vm_page_startup needs more KPTs */ +#else #define NKPT 120 /* actual number of kernel page tables */ +#endif #ifndef LOCORE |