diff options
author | 2004-07-17 21:27:30 +0000 | |
---|---|---|
committer | 2004-07-17 21:27:30 +0000 | |
commit | 1b011a2dd69a7eb064635599a9833b4e35d32f73 (patch) | |
tree | 8b835cbed93bf3919885f680a852b54660d2eab9 | |
parent | the IPv4/IPv6 standalone mode patch has some issues so back it out for now. (diff) | |
download | wireguard-openbsd-1b011a2dd69a7eb064635599a9833b4e35d32f73.tar.xz wireguard-openbsd-1b011a2dd69a7eb064635599a9833b4e35d32f73.zip |
Wait for output to be drained when sabtty is the console output port;
produces nicer (correct) kernel output upon bootup.
Reported in NetBSD PR #26226; tested by dlg@ and I.
-rw-r--r-- | sys/arch/sparc64/dev/sab.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c index 0415c2a1fbc..7cbc73ab142 100644 --- a/sys/arch/sparc64/dev/sab.c +++ b/sys/arch/sparc64/dev/sab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sab.c,v 1.16 2003/12/16 15:08:50 jason Exp $ */ +/* $OpenBSD: sab.c,v 1.17 2004/07/17 21:27:30 miod Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -426,7 +426,12 @@ sabtty_attach(parent, self, aux) break; } - t.c_ispeed= 0; + if (sc->sc_flags & SABTTYF_CONS_OUT) { + /* Let current output drain */ + DELAY(100000); + } + + t.c_ispeed = 0; t.c_ospeed = 9600; t.c_cflag = CREAD | CS8 | HUPCL; sc->sc_tty->t_ospeed = 0; |