summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1997-06-25 20:07:50 +0000
committertegge <tegge@FreeBSD.org>1997-06-25 20:07:50 +0000
commitd2644a7ea86dc8697b7b6c59cbaab080d3e0f0d5 (patch)
tree738fd2b36f58f6f8ce2596ff9c8e4545a3cccb36 /sys
parent0b785f19704c8e0cf49a4a9bb5a1a8e42faffe62 (diff)
downloadFreeBSD-src-d2644a7ea86dc8697b7b6c59cbaab080d3e0f0d5.zip
FreeBSD-src-d2644a7ea86dc8697b7b6c59cbaab080d3e0f0d5.tar.gz
Allow kernel configuration file to override PMAP_SHPGPERPROC. The default
value (200) is too low in some environments, causing a fatal "panic: get_pv_entry: cannot get a pv_entry_t". The same panic might still occur due to temporary shortage of free physical memory (cf. PR i386/2431).
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/pmap.c4
-rw-r--r--sys/i386/i386/pmap.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index c95c509..eeb66f7 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.145 1997/05/29 05:58:41 fsmp Exp $
+ * $Id: pmap.c,v 1.146 1997/06/22 16:03:29 peter Exp $
*/
/*
@@ -108,7 +108,9 @@
#endif /* SMP || APIC_IO */
#define PMAP_KEEP_PDIRS
+#ifndef PMAP_SHPGPERPROC
#define PMAP_SHPGPERPROC 200
+#endif
#if defined(DIAGNOSTIC)
#define PMAP_DIAGNOSTIC
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index c95c509..eeb66f7 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.145 1997/05/29 05:58:41 fsmp Exp $
+ * $Id: pmap.c,v 1.146 1997/06/22 16:03:29 peter Exp $
*/
/*
@@ -108,7 +108,9 @@
#endif /* SMP || APIC_IO */
#define PMAP_KEEP_PDIRS
+#ifndef PMAP_SHPGPERPROC
#define PMAP_SHPGPERPROC 200
+#endif
#if defined(DIAGNOSTIC)
#define PMAP_DIAGNOSTIC
OpenPOWER on IntegriCloud