summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-11-18 16:10:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-11-18 16:10:44 +0000
commitfa21c6add2f44ec5d4d8c454263f6b6a2d06474f (patch)
tree672418409c55183d2960330da72a58ae65af1c84 /sys/arch/mvmeppc
parentbc1958a85c440d49cfd575abc17977cca3081f1e (diff)
Tell MVME2600 and MVME2700 apart.
Diffstat (limited to 'sys/arch/mvmeppc')
-rw-r--r--sys/arch/mvmeppc/dev/mainbus.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/arch/mvmeppc/dev/mainbus.c b/sys/arch/mvmeppc/dev/mainbus.c
index a616cef8f0a..f42047c5b23 100644
--- a/sys/arch/mvmeppc/dev/mainbus.c
+++ b/sys/arch/mvmeppc/dev/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.9 2004/05/14 20:38:32 miod Exp $ */
+/* $OpenBSD: mainbus.c,v 1.10 2004/11/18 16:10:43 miod Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -62,6 +62,7 @@ mbattach(struct device *parent, struct device *self, void *aux)
struct mainbus_softc *sc = (struct mainbus_softc *)self;
struct confargs nca;
u_int8_t systype;
+ int cpu;
extern vaddr_t isaspace_va;
/* Pretty print the system type */
@@ -75,10 +76,18 @@ mbattach(struct device *parent, struct device *self, void *aux)
printf("Dahu MVME");
break;
case MVMETYPE_2600_712:
- printf("MVME2600 or MVME2700 (712-compatible)");
+ cpu = ppc_mfpvr() >> 16;
+ if (cpu == PPC_CPU_MPC750)
+ printf("MVME2700 (712-compatible)");
+ else
+ printf("MVME2600 (712-compatible)");
break;
case MVMETYPE_2600_761:
- printf("MVME2600 or MVME2700 (761-compatible)");
+ cpu = ppc_mfpvr() >> 16;
+ if (cpu == PPC_CPU_MPC750)
+ printf("MVME2700 (761-compatible)");
+ else
+ printf("MVME2600 (761-compatible)");
break;
case MVMETYPE_3600_712:
printf("MVME3600 or MVME4600 (712-compatible)");