diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mvme88k/dev/cl.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/dev/dart.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index 713e66f638b..c1f6af2fdd4 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.38 2004/02/10 10:06:48 miod Exp $ */ +/* $OpenBSD: cl.c,v 1.39 2004/02/10 10:30:25 miod Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -39,6 +39,7 @@ #include <machine/autoconf.h> #include <machine/conf.h> #include <machine/cpu.h> +#include <machine/locore.h> #include <machine/psl.h> #include <dev/cons.h> @@ -920,10 +921,11 @@ clcnprobe(cp) int maj; /* bomb if it'a a MVME188 */ - if (brdtyp == BRD_188) { + if (brdtyp == BRD_188 || badaddr(CD2400_BASE_ADDR, 1) != 0) { cp->cn_pri = CN_DEAD; return; } + /* locate the major number */ for (maj = 0; maj < nchrdev; maj++) if (cdevsw[maj].d_open == clopen) diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c index 23ef06d271a..32f1835cd10 100644 --- a/sys/arch/mvme88k/dev/dart.c +++ b/sys/arch/mvme88k/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.28 2004/02/10 10:06:48 miod Exp $ */ +/* $OpenBSD: dart.c,v 1.29 2004/02/10 10:30:25 miod Exp $ */ /* * Mach Operating System @@ -42,6 +42,7 @@ #include <machine/conf.h> #include <machine/cpu.h> #include <machine/cpu_number.h> +#include <machine/locore.h> #include <machine/psl.h> #include <dev/cons.h> @@ -1144,10 +1145,11 @@ dartcnprobe(cp) { int maj; - if (brdtyp != BRD_188) { + if (brdtyp != BRD_188 || badaddr(DART_BASE, 2) != 0) { cp->cn_pri = CN_DEAD; return; } + /* locate the major number */ for (maj = 0; maj < nchrdev; maj++) if (cdevsw[maj].d_open == dartopen) |