Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include Don't explode when we've got a lot of...



details:   https://anonhg.NetBSD.org/src/rev/ff4aa940da59
branches:  trunk
changeset: 481331:ff4aa940da59
user:      cjs <cjs%NetBSD.org@localhost>
date:      Wed Jan 26 07:35:51 2000 +0000

description:
Don't explode when we've got a lot of RAM. Limit our space for buffers
to 1/4 of the kernel VM map.

diffstat:

 sys/arch/sparc/include/param.h   |  5 ++++-
 sys/arch/sparc/include/vmparam.h |  4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 10b26c27ac18 -r ff4aa940da59 sys/arch/sparc/include/param.h
--- a/sys/arch/sparc/include/param.h    Wed Jan 26 07:06:03 2000 +0000
+++ b/sys/arch/sparc/include/param.h    Wed Jan 26 07:35:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.41 1999/12/04 21:21:28 ragge Exp $ */
+/*     $NetBSD: param.h,v 1.42 2000/01/26 07:35:51 cjs Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -89,6 +89,9 @@
 #endif
 
 #define        KERNBASE        0xf0000000      /* start of kernel virtual space */
+#define KERNEND                0xfe000000      /* end of kernel virtual space */
+/* Arbitrarily only use 1/4 of the kernel address space for buffers. */
+#define VM_MAX_KERNEL_BUF      ((KERNEND - KERNBASE)/4)
 #define PROM_LOADADDR  0x00004000      /* where the prom loads us */
 #define        KERNTEXTOFF     (KERNBASE+PROM_LOADADDR)/* start of kernel text */
 
diff -r 10b26c27ac18 -r ff4aa940da59 sys/arch/sparc/include/vmparam.h
--- a/sys/arch/sparc/include/vmparam.h  Wed Jan 26 07:06:03 2000 +0000
+++ b/sys/arch/sparc/include/vmparam.h  Wed Jan 26 07:35:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.22 1999/12/04 21:21:29 ragge Exp $ */
+/*     $NetBSD: vmparam.h,v 1.23 2000/01/26 07:35:52 cjs Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -125,7 +125,7 @@
 #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)0xfe000000)
+#define VM_MAX_KERNEL_ADDRESS   ((vaddr_t)KERNEND)
 
 /* virtual sizes (bytes) for various kernel submaps */
 #define VM_KMEM_SIZE           (NKMEMCLUSTERS*NBPG)



Home | Main Index | Thread Index | Old Index