From a2dade9e8e4ee6fd30b225a1a16e3ab74f55ca13 Mon Sep 17 00:00:00 2001 From: chs Date: Tue, 3 Jul 2001 05:17:12 +0000 Subject: [PATCH] move parts that are the same from vmparam3{,x}.h to vmparam.h. --- sys/arch/sun3/include/vmparam.h | 28 ++++++++++++++++++++++++++-- sys/arch/sun3/include/vmparam3.h | 22 +--------------------- sys/arch/sun3/include/vmparam3x.h | 22 +--------------------- 3 files changed, 28 insertions(+), 44 deletions(-) diff --git a/sys/arch/sun3/include/vmparam.h b/sys/arch/sun3/include/vmparam.h index 6844a31cceee..42d2024d879d 100644 --- a/sys/arch/sun3/include/vmparam.h +++ b/sys/arch/sun3/include/vmparam.h @@ -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_ */ diff --git a/sys/arch/sun3/include/vmparam3.h b/sys/arch/sun3/include/vmparam3.h index 847f2c452a21..9dcebf52c2d7 100644 --- a/sys/arch/sun3/include/vmparam3.h +++ b/sys/arch/sun3/include/vmparam3.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 @@ -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) diff --git a/sys/arch/sun3/include/vmparam3x.h b/sys/arch/sun3/include/vmparam3x.h index 615481eef3ba..e476a8586653 100644 --- a/sys/arch/sun3/include/vmparam3x.h +++ b/sys/arch/sun3/include/vmparam3x.h @@ -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