From e0a7412b69d0d38e94a7dc24079abc1806c8b04e Mon Sep 17 00:00:00 2001 From: jchandra Date: Tue, 1 Mar 2011 04:21:56 +0000 Subject: 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. --- sys/mips/include/pmap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/mips/include/pmap.h') 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 #include +#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 -- cgit v1.1