move parts that are the same from vmparam3{,x}.h to vmparam.h.

This commit is contained in:
chs 2001-07-03 05:17:12 +00:00
parent 8b9f679d56
commit a2dade9e8e
3 changed files with 28 additions and 44 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.29 2001/05/01 02:19:20 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.30 2001/07/03 05:17:12 chs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -33,6 +33,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _SUN3_VMPARAM_H_
#define _SUN3_VMPARAM_H_ 1
/*
* We use 8K pages on both the sun3 and sun3x. Override PAGE_*
* to be compile-time constants.
@ -54,7 +57,6 @@
#define MAXDSIZ (32*1024*1024) /* max data size */
#endif
extern char KERNBASE[];
#define VM_NFREELIST 1
#endif /* _LKM */
/* This is needed by some LKMs. */
@ -70,3 +72,25 @@ extern char KERNBASE[];
* change over time.
*/
#define MAXSLP 20
/*
* Mach-derived constants:
*/
/* user/kernel map constants */
#define VM_MIN_ADDRESS ((vaddr_t)0)
#define VM_MAX_ADDRESS ((vaddr_t)KERNBASE)
#define VM_MAXUSER_ADDRESS ((vaddr_t)KERNBASE)
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)KERNBASE)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)KERN_END)
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*NBPG)
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0
#endif /* _SUN3_VMPARAM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam3.h,v 1.29 2001/02/21 02:43:02 chs Exp $ */
/* $NetBSD: vmparam3.h,v 1.30 2001/07/03 05:17:13 chs Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -102,24 +102,4 @@
#define SHMMAXPGS 512 /* 4 MB */
#endif
/*
* Mach-derived constants:
*/
/* user/kernel map constants */
#define VM_MIN_ADDRESS ((vm_offset_t)0)
#define VM_MAX_ADDRESS ((vm_offset_t)KERNBASE)
#define VM_MAXUSER_ADDRESS ((vm_offset_t)KERNBASE)
#define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)KERNBASE)
#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)KERN_END)
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*NBPG)
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0
#define PAGER_MAP_SIZE (4 * 1024 * 1024)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam3x.h,v 1.14 2000/02/11 19:30:30 thorpej Exp $ */
/* $NetBSD: vmparam3x.h,v 1.15 2001/07/03 05:17:13 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -89,23 +89,3 @@
#ifndef SHMMAXPGS
#define SHMMAXPGS 2048 /* 16 MB */
#endif
/*
* Mach-derived constants:
*/
/* user/kernel map constants */
#define VM_MIN_ADDRESS ((vm_offset_t)0)
#define VM_MAX_ADDRESS ((vm_offset_t)KERNBASE)
#define VM_MAXUSER_ADDRESS ((vm_offset_t)KERNBASE)
#define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)KERNBASE)
#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)KERN_END)
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*NBPG)
#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */
#define VM_NFREELIST 1
#define VM_FREELIST_DEFAULT 0