diff --git a/sys/dev/ic/z8530tty.c b/sys/dev/ic/z8530tty.c index 36d981503aa9..1c953a868dc6 100644 --- a/sys/dev/ic/z8530tty.c +++ b/sys/dev/ic/z8530tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: z8530tty.c,v 1.51 1998/08/31 22:28:05 cgd Exp $ */ +/* $NetBSD: z8530tty.c,v 1.52 1998/10/01 18:52:42 drochner Exp $ */ /*- * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998 @@ -111,6 +111,8 @@ #include #include +#include + #include "locators.h" /* @@ -257,9 +259,10 @@ zstty_attach(parent, self, aux) if (zst->zst_swflags) printf(" flags 0x%x", zst->zst_swflags); - if (ISSET(zst->zst_hwflags, ZS_HWFLAG_CONSOLE)) + if (ISSET(zst->zst_hwflags, ZS_HWFLAG_CONSOLE)) { printf(" (console)"); - else { + cn_tab->cn_dev = dev; + } else { #ifdef KGDB /* * Allow kgdb to "take over" this port. Returns true @@ -302,6 +305,8 @@ zstty_attach(parent, self, aux) /* Call zsparam similar to open. */ struct termios t; + DELAY(20000); + s = splzs(); /* Turn on interrupts. */