Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun3/include move parts that are the same from vmpa...
details: https://anonhg.NetBSD.org/src/rev/72bfe1aac371
branches: trunk
changeset: 512017:72bfe1aac371
user: chs <chs%NetBSD.org@localhost>
date: Tue Jul 03 05:17:12 2001 +0000
description:
move parts that are the same from vmparam3{,x}.h to vmparam.h.
diffstat:
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(-)
diffs (120 lines):
diff -r 59e88ec3a1b9 -r 72bfe1aac371 sys/arch/sun3/include/vmparam.h
--- a/sys/arch/sun3/include/vmparam.h Tue Jul 03 02:37:06 2001 +0000
+++ b/sys/arch/sun3/include/vmparam.h Tue Jul 03 05:17:12 2001 +0000
@@ -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 @@
* 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 -r 59e88ec3a1b9 -r 72bfe1aac371 sys/arch/sun3/include/vmparam3.h
--- a/sys/arch/sun3/include/vmparam3.h Tue Jul 03 02:37:06 2001 +0000
+++ b/sys/arch/sun3/include/vmparam3.h Tue Jul 03 05:17:12 2001 +0000
@@ -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 -r 59e88ec3a1b9 -r 72bfe1aac371 sys/arch/sun3/include/vmparam3x.h
--- a/sys/arch/sun3/include/vmparam3x.h Tue Jul 03 02:37:06 2001 +0000
+++ b/sys/arch/sun3/include/vmparam3x.h Tue Jul 03 05:17:12 2001 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index