From a4ec81c7d0ede785121b757a8b8abf67d6eae038 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 25 Jun 1997 20:07:50 +0000 Subject: [PATCH] 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). --- sys/amd64/amd64/pmap.c | 4 +++- sys/i386/i386/pmap.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index c95c509f1c0..eeb66f7310d 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 c95c509f1c0..eeb66f7310d 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 -- 2.45.2