Add some page coloring defaults.

This commit is contained in:
thorpej 2001-05-02 02:30:30 +00:00
parent e0d3747f72
commit cfda5afaa5
5 changed files with 51 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_550.c,v 1.12 2001/04/25 17:53:05 bouyer Exp $ */
/* $NetBSD: dec_550.c,v 1.13 2001/05/02 02:30:30 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.12 2001/04/25 17:53:05 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.13 2001/05/02 02:30:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -40,6 +40,8 @@ __KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.12 2001/04/25 17:53:05 bouyer Exp $");
#include <sys/termios.h>
#include <dev/cons.h>
#include <uvm/uvm_extern.h>
#include <machine/rpb.h>
#include <machine/autoconf.h>
#include <machine/conf.h>
@ -104,6 +106,11 @@ dec_550_init()
platform.cons_init = dec_550_cons_init;
platform.device_register = dec_550_device_register;
platform.powerdown = dec_550_powerdown;
/*
* If Miata systems have a secondary cache, it's 2MB.
*/
uvmexp.ncolors = atop(2 * 1024 * 1024);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_axppci_33.c,v 1.47 2001/04/25 17:53:05 bouyer Exp $ */
/* $NetBSD: dec_axppci_33.c,v 1.48 2001/05/02 02:30:30 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.47 2001/04/25 17:53:05 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.48 2001/05/02 02:30:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -39,6 +39,8 @@ __KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.47 2001/04/25 17:53:05 bouyer Ex
#include <sys/termios.h>
#include <dev/cons.h>
#include <uvm/uvm_extern.h>
#include <machine/rpb.h>
#include <machine/alpha.h>
#include <machine/autoconf.h>
@ -149,6 +151,14 @@ dec_axppci_33_init()
bus_space_write_1(iot, nsio, NSIO_DATA, cfg0val);
/* Leave nsio mapped to catch any accidental port space collisions */
/*
* AXPpci33 systems have either 0, 256K, or 1M secondary
* caches. Default to middle-of-the-road.
*
* XXX Dynamically size it!
*/
uvmexp.ncolors = atop(256 * 1024);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb164.c,v 1.38 2001/04/25 17:53:05 bouyer Exp $ */
/* $NetBSD: dec_eb164.c,v 1.39 2001/05/02 02:30:30 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.38 2001/04/25 17:53:05 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.39 2001/05/02 02:30:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -40,6 +40,8 @@ __KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.38 2001/04/25 17:53:05 bouyer Exp $"
#include <sys/termios.h>
#include <dev/cons.h>
#include <uvm/uvm_extern.h>
#include <machine/rpb.h>
#include <machine/autoconf.h>
#include <machine/conf.h>
@ -99,6 +101,11 @@ dec_eb164_init()
platform.iobus = "cia";
platform.cons_init = dec_eb164_cons_init;
platform.device_register = dec_eb164_device_register;
/*
* EB164 systems have a 2MB secondary cache.
*/
uvmexp.ncolors = atop(2 * 1024 * 1024);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb64plus.c,v 1.22 2001/04/25 17:53:05 bouyer Exp $ */
/* $NetBSD: dec_eb64plus.c,v 1.23 2001/05/02 02:30:30 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.22 2001/04/25 17:53:05 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.23 2001/05/02 02:30:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -40,6 +40,8 @@ __KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.22 2001/04/25 17:53:05 bouyer Exp
#include <sys/termios.h>
#include <dev/cons.h>
#include <uvm/uvm_extern.h>
#include <machine/rpb.h>
#include <machine/alpha.h>
#include <machine/autoconf.h>
@ -104,6 +106,14 @@ dec_eb64plus_init()
platform.iobus = "apecs";
platform.cons_init = dec_eb64plus_cons_init;
platform.device_register = dec_eb64plus_device_register;
/*
* EB64+ systems can have 512K, 1M, or 2M secondary
* caches. Default to middle-of-the-road.
*
* XXX Need to dynamically size it!
*/
uvmexp.ncolors = atop(1 * 1024 * 1024);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb66.c,v 1.8 2001/04/25 17:53:05 bouyer Exp $ */
/* $NetBSD: dec_eb66.c,v 1.9 2001/05/02 02:30:30 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.8 2001/04/25 17:53:05 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.9 2001/05/02 02:30:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -40,6 +40,8 @@ __KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.8 2001/04/25 17:53:05 bouyer Exp $");
#include <sys/termios.h>
#include <dev/cons.h>
#include <uvm/uvm_extern.h>
#include <machine/rpb.h>
#include <machine/autoconf.h>
#include <machine/conf.h>
@ -104,6 +106,11 @@ dec_eb66_init()
platform.iobus = "lca";
platform.cons_init = dec_eb66_cons_init;
platform.device_register = dec_eb66_device_register;
/*
* EB66 systems have 1M secondary caches.
*/
uvmexp.ncolors = atop(1 * 1024 * 1024);
}
static void