Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/uvm Pull up revision 1.77 (requested by wrstuden in...



details:   https://anonhg.NetBSD.org/src/rev/bc26e56cefb4
branches:  netbsd-1-6
changeset: 528011:bc26e56cefb4
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 20 02:49:12 2002 +0000

description:
Pull up revision 1.77 (requested by wrstuden in ticket #322):
Fix recent bugs seen on Performa 4400 macppc's by
Makoto Fujiwara <makoto%ki.nu@localhost> and Manuel Bouyer <bouyer%netbsd.org@localhost>.
Help from Allen Briggs, Jason Thorpe, and Matt Thomas.
We need to call cpu_cache_probe() early in boot (machdep.c).
Add 603 info for completeness, and use NBPG not PAGESIZE, as the
latter relies on uvm being setup (cpu_subr.c).
Let uvm_page_recolor() be called before uvm has been set up; just
note the page coloring value (uvm_page.c).

diffstat:

 sys/uvm/uvm_page.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 534b0b3c51e2 -r bc26e56cefb4 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Thu Jun 20 02:49:00 2002 +0000
+++ b/sys/uvm/uvm_page.c        Thu Jun 20 02:49:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.75.4.1 2002/06/01 22:44:00 tv Exp $     */
+/*     $NetBSD: uvm_page.c,v 1.75.4.2 2002/06/20 02:49:12 lukem Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.75.4.1 2002/06/01 22:44:00 tv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.75.4.2 2002/06/20 02:49:12 lukem Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -866,6 +866,11 @@
        if (newncolors <= uvmexp.ncolors)
                return;
 
+       if (uvm.page_init_done == FALSE) {
+               uvmexp.ncolors = newncolors;
+               return;
+       }
+
        bucketcount = newncolors * VM_NFREELIST;
        bucketarray = malloc(bucketcount * sizeof(struct pgflbucket),
            M_VMPAGE, M_NOWAIT);



Home | Main Index | Thread Index | Old Index