move parts that are the same from vmparam3{,x}.h to vmparam.h.
This commit is contained in:
parent
8b9f679d56
commit
a2dade9e8e
|
@ -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.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
|
@ -33,6 +33,9 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* 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_*
|
* We use 8K pages on both the sun3 and sun3x. Override PAGE_*
|
||||||
* to be compile-time constants.
|
* to be compile-time constants.
|
||||||
|
@ -54,7 +57,6 @@
|
||||||
#define MAXDSIZ (32*1024*1024) /* max data size */
|
#define MAXDSIZ (32*1024*1024) /* max data size */
|
||||||
#endif
|
#endif
|
||||||
extern char KERNBASE[];
|
extern char KERNBASE[];
|
||||||
#define VM_NFREELIST 1
|
|
||||||
#endif /* _LKM */
|
#endif /* _LKM */
|
||||||
|
|
||||||
/* This is needed by some LKMs. */
|
/* This is needed by some LKMs. */
|
||||||
|
@ -70,3 +72,25 @@ extern char KERNBASE[];
|
||||||
* change over time.
|
* change over time.
|
||||||
*/
|
*/
|
||||||
#define MAXSLP 20
|
#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_ */
|
||||||
|
|
|
@ -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
|
* Copyright (c) 1994 Gordon W. Ross
|
||||||
|
@ -102,24 +102,4 @@
|
||||||
#define SHMMAXPGS 512 /* 4 MB */
|
#define SHMMAXPGS 512 /* 4 MB */
|
||||||
#endif
|
#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)
|
#define PAGER_MAP_SIZE (4 * 1024 * 1024)
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1988 University of Utah.
|
||||||
|
@ -89,23 +89,3 @@
|
||||||
#ifndef SHMMAXPGS
|
#ifndef SHMMAXPGS
|
||||||
#define SHMMAXPGS 2048 /* 16 MB */
|
#define SHMMAXPGS 2048 /* 16 MB */
|
||||||
#endif
|
#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
|
|
||||||
|
|
Loading…
Reference in New Issue