Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/mpc6xx - The 8240 and 8245 have a 603 core ...
details: https://anonhg.NetBSD.org/src/rev/8f6da905960b
branches: trunk
changeset: 533046:8f6da905960b
user: briggs <briggs%NetBSD.org@localhost>
date: Wed Jun 19 17:43:30 2002 +0000
description:
- The 8240 and 8245 have a 603 core -- add them to the 603 lists...
- Use atop(dcache_size / assoc) for uvm_page_recolor(ing) instead
of atop(dcache_line_size / assoc).
diffstat:
sys/arch/powerpc/mpc6xx/cpu_subr.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r c46ed484ec14 -r 8f6da905960b sys/arch/powerpc/mpc6xx/cpu_subr.c
--- a/sys/arch/powerpc/mpc6xx/cpu_subr.c Wed Jun 19 17:39:26 2002 +0000
+++ b/sys/arch/powerpc/mpc6xx/cpu_subr.c Wed Jun 19 17:43:30 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_subr.c,v 1.19 2002/06/19 17:01:20 wrstuden Exp $ */
+/* $NetBSD: cpu_subr.c,v 1.20 2002/06/19 17:43:30 briggs Exp $ */
/*-
* Copyright (c) 2001 Matt Thomas.
@@ -95,6 +95,8 @@
case MPC603e:
case MPC603ev:
case MPC604:
+ case MPC8240:
+ case MPC8245:
curcpu()->ci_ci.dcache_size = 16 K;
curcpu()->ci_ci.icache_size = 16 K;
assoc = 4;
@@ -118,7 +120,7 @@
/*
* Possibly recolor.
*/
- uvm_page_recolor(atop(curcpu()->ci_ci.dcache_line_size / assoc));
+ uvm_page_recolor(atop(curcpu()->ci_ci.dcache_size / assoc));
}
struct cpu_info *
@@ -195,6 +197,8 @@
case MPC750:
case MPC7400:
case MPC7410:
+ case MPC8240:
+ case MPC8245:
/* Select DOZE mode. */
hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
hid0 |= HID0_DOZE | HID0_DPM;
@@ -342,6 +346,7 @@
{ MPC7450, "7450" },
{ MPC7455, "7455" },
{ MPC8240, "8240" },
+ { MPC8245, "8245" },
{ 0, NULL }
};
Home |
Main Index |
Thread Index |
Old Index