svn commit: r219122 - head/sys/mips/include
Jayachandran C.
jchandra at FreeBSD.org
Tue Mar 1 04:21:57 UTC 2011
Author: jchandra
Date: Tue Mar 1 04:21:56 2011
New Revision: 219122
URL: http://svn.freebsd.org/changeset/base/219122
Log:
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.
Modified:
head/sys/mips/include/pmap.h
Modified: head/sys/mips/include/pmap.h
==============================================================================
--- head/sys/mips/include/pmap.h Tue Mar 1 03:25:18 2011 (r219121)
+++ head/sys/mips/include/pmap.h Tue Mar 1 04:21:56 2011 (r219122)
@@ -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
More information about the svn-src-all
mailing list