Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc Recognize MPC7400.
details: https://anonhg.NetBSD.org/src/rev/83b87e347779
branches: trunk
changeset: 480844:83b87e347779
user: tsubai <tsubai%NetBSD.org@localhost>
date: Fri Jan 21 18:49:52 2000 +0000
description:
Recognize MPC7400.
diffstat:
sys/arch/macppc/macppc/cpu.c | 8 +++++---
sys/arch/macppc/macppc/machdep.c | 5 ++++-
2 files changed, 9 insertions(+), 4 deletions(-)
diffs (62 lines):
diff -r e872ba02de7e -r 83b87e347779 sys/arch/macppc/macppc/cpu.c
--- a/sys/arch/macppc/macppc/cpu.c Fri Jan 21 18:45:14 2000 +0000
+++ b/sys/arch/macppc/macppc/cpu.c Fri Jan 21 18:49:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.4 1999/06/30 16:34:19 tsubai Exp $ */
+/* $NetBSD: cpu.c,v 1.5 2000/01/21 18:49:52 tsubai Exp $ */
/*-
* Copyright (C) 1998, 1999 Internet Research Institute, Inc.
@@ -70,6 +70,7 @@
#define MPC603e 6
#define MPC603ev 7
#define MPC750 8
+#define MPC7400 12
#define HID0_DOZE 0x00800000
#define HID0_NAP 0x00400000
@@ -89,6 +90,7 @@
case MPC603e:
case MPC603ev:
case MPC750:
+ case MPC7400:
/* Select DOZE power-save mode. */
__asm __volatile ("mfspr %0,1008" : "=r"(hid0));
hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
@@ -96,7 +98,7 @@
__asm __volatile ("mtspr 1008,%0" :: "r"(hid0));
}
- if ((pvr >> 16) == MPC750)
+ if ((pvr >> 16) == MPC750 || (pvr >> 16) == MPC7400)
display_l2cr();
else if (OF_finddevice("/bandit/ohare") != -1)
ohare_init();
@@ -194,7 +196,7 @@
if (l2cr & L2CR_L2PE)
printf(" with parity");
#endif
- printf(" backside cache enabled");
+ printf(" backside cache");
}
printf("\n");
}
diff -r e872ba02de7e -r 83b87e347779 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c Fri Jan 21 18:45:14 2000 +0000
+++ b/sys/arch/macppc/macppc/machdep.c Fri Jan 21 18:49:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.65 2000/01/19 20:05:43 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.66 2000/01/21 18:49:52 tsubai Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -435,6 +435,9 @@
case 9:
sprintf(cpu_model, "604ev");
break;
+ case 12:
+ sprintf(cpu_model, "7400");
+ break;
case 20:
sprintf(cpu_model, "620");
break;
Home |
Main Index |
Thread Index |
Old Index