summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2007-03-20 10:34:53 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2007-03-20 10:34:53 +0000
commit018b2e846d935cc4c2577e95d153a324aded76de (patch)
tree937c31ec9101737655ddfc526f2b89afd5698b3f /sys/dev
parent6ca73e07d2a49007a933df090e8f876a9ceb2b5f (diff)
on com_console we need a little delay to let fifo flush itself before resetting it and stuff to avoid garbled dmesg output; found on some arm
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/com_subr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/com_subr.c b/sys/dev/ic/com_subr.c
index 9bd6f6aec09..02c8bf92f62 100644
--- a/sys/dev/ic/com_subr.c
+++ b/sys/dev/ic/com_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_subr.c,v 1.8 2006/12/28 20:50:26 miod Exp $ */
+/* $OpenBSD: com_subr.c,v 1.9 2007/03/20 10:34:52 mickey Exp $ */
/*
* Copyright (c) 1997 - 1999, Jason Downs. All rights reserved.
@@ -323,6 +323,10 @@ com_attach_subr(sc)
default:
panic("comattach: bad fifo type");
}
+#ifdef COM_CONSOLE
+ if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE))
+ delay(10000); /* wait for output to finish */
+#endif
#ifdef notyet
com_fifo_probe(sc);