minor changes to console handling in zstty_attach():

-wait 20ms between printf() and reconfiguring the hardware
-set cn_tab->cn_dev here because this is the place where the real minor
 number is known
This commit is contained in:
drochner 1998-10-01 18:52:42 +00:00
parent 33dacac36e
commit 1693b8b4a6
1 changed files with 8 additions and 3 deletions

View File

@ -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 <dev/ic/z8530reg.h>
#include <machine/z8530var.h>
#include <dev/cons.h>
#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. */