Subject: port-sun3/1220: No default SHMMAXPGS in arch/sun3/include/vmparam.h
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: netbsd-bugs
Date: 07/12/1995 18:05:06
>Number:         1220
>Category:       port-sun3
>Synopsis:       No default SHMMAXPGS in arch/sun3/include/vmparam.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 12 18:05:03 1995
>Originator:     Jason Thorpe
>Organization:
Numerical Aerodynamic Simulation Project - NASA Ames
>Release:        -current of July 8, 1995
>Environment:
	
System: NetBSD dilrod 1.0A NetBSD 1.0A (DILROD) #0: Wed Jul 12 12:43:24 PDT 1995 thorpej@dilrod:/tmp_mnt/antie/work/netbsd/src/sys/arch/sun3/compile/DILROD sun3


>Description:
	There is no default SHMMAXPGS on the sun3.

>How-To-Repeat:
	Compile a kernel with SYSVSHM, but don't specify SHMMAXPGS.  param.c
	will fail to compile.

>Fix:
	Well, the other ports define this in vmparam.h, so...

Index: vmparam.h
===================================================================
RCS file: /mastersrc/netbsd/src/sys/arch/sun3/include/vmparam.h,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 vmparam.h
*** vmparam.h	1995/06/02 19:06:55	1.1.1.2
--- vmparam.h	1995/07/12 16:36:12
***************
*** 85,90 ****
--- 85,97 ----
  #define	DMMAX	4096			/* largest potential swap allocation */
  
  /*
+  * Size of shared memory map
+  */
+ #ifndef SHMMAXPGS
+ #define SHMMAXPGS	1024
+ #endif
+ 
+ /*
   * PTEs for mapping user space into the kernel for phyio operations.
   * [this figure is based on the assumption that you can put ptes in real
   *  memory.  this is a false assumption on a sun3]
>Audit-Trail:
>Unformatted: