summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-01 19:10:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-01 19:10:48 +0000
commit821d8ee191b1d05032edc9551e236ea625483cc6 (patch)
tree1d1e68fa05eba975e12963032300a97a5594b3ef /sys/arch/mvme68k
parent2e35c5c959d8eeda094361efa18b76f7d038fe85 (diff)
add CONSOLEBREAKDDB support. also be less verbose at boot..
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/dev/cl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c
index 12b1184965d..0939ee28b3e 100644
--- a/sys/arch/mvme68k/dev/cl.c
+++ b/sys/arch/mvme68k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $Id: cl.c,v 1.5 1995/12/01 18:13:15 deraadt Exp $ */
+/* $Id: cl.c,v 1.6 1995/12/01 19:10:47 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -294,6 +294,7 @@ clattach(parent, self, aux)
sc->sc_cl[2].tx[1] = (void *)(((int)sc->sc_cl[2].tx[0]) + CL_BUFSIZE);
sc->sc_cl[3].tx[0] = (void *)(((int)sc->sc_cl[2].tx[1]) + CL_BUFSIZE);
sc->sc_cl[3].tx[1] = (void *)(((int)sc->sc_cl[3].tx[0]) + CL_BUFSIZE);
+#if 0
for (i = 0; i < CLCD_PORTS_PER_CHIP; i++) {
int j;
for (j = 0; j < 2 ; j++) {
@@ -314,6 +315,7 @@ printf("cl[%d].txbuf[%d] %x p %x\n",
#endif
cl_initchannel(sc, i);
}
+#endif
/* enable interrupts */
sc->sc_ih_e.ih_fn = cl_rxintr;
sc->sc_ih_e.ih_arg = sc;
@@ -1781,6 +1783,10 @@ cl_break (sc, channel)
struct clsoftc *sc;
int channel;
{
+#ifdef CONSOLEBREAKDDB
+ if (sc->sc_cl[channel].cl_consio)
+ Debugger();
+#endif
log(LOG_WARNING, "%s%d[%d]: break detected\n", clcd.cd_name, 0, channel);
return;
}