Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/pmax/pmax pullup 1.135->1.136 (simonb)



details:   https://anonhg.NetBSD.org/src/rev/dacfd7645d34
branches:  netbsd-1-4
changeset: 468402:dacfd7645d34
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Apr 21 14:50:19 1999 +0000

description:
pullup 1.135->1.136 (simonb)

diffstat:

 sys/arch/pmax/pmax/machdep.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r a123b34a140d -r dacfd7645d34 sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Wed Apr 21 14:47:44 1999 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Wed Apr 21 14:50:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.134.2.1 1999/04/16 16:23:02 chs Exp $    */
+/*     $NetBSD: machdep.c,v 1.134.2.2 1999/04/21 14:50:19 perry Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.134.2.1 1999/04/16 16:23:02 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.134.2.2 1999/04/21 14:50:19 perry Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -548,9 +548,16 @@
                    NULL, UVM_UNKNOWN_OFFSET,
                    UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
                                UVM_ADV_NORMAL, 0)) != KERN_SUCCESS)
-               panic("startup: cannot allocate VM for buffers");
+               panic("cpu_startup: cannot allocate VM for buffers");
+
+       minaddr = (vaddr_t)buffers;
+       if ((bufpages / nbuf) >= btoc(MAXBSIZE)) {
+               bufpages = btoc(MAXBSIZE) * nbuf; /* do not overallocate RAM */
+       }
        base = bufpages / nbuf;
        residual = bufpages % nbuf;
+
+       /* now allocate RAM for buffers */
        for (i = 0; i < nbuf; i++) {
                vsize_t curbufsize;
                vaddr_t curbuf;



Home | Main Index | Thread Index | Old Index