Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic set carrier early if used as console or kgdb line...



details:   https://anonhg.NetBSD.org/src/rev/bb3eedabadb9
branches:  trunk
changeset: 479784:bb3eedabadb9
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Dec 21 11:04:36 1999 +0000

description:
set carrier early if used as console or kgdb line, fixes PR kern/6547
by Andreas Gustafsson, gson%iengines.com@localhost

diffstat:

 sys/dev/ic/com.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3aabcbdd20c7 -r bb3eedabadb9 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Tue Dec 21 10:47:00 1999 +0000
+++ b/sys/dev/ic/com.c  Tue Dec 21 11:04:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com.c,v 1.164 1999/11/22 03:53:38 sommerfeld Exp $     */
+/*     $NetBSD: com.c,v 1.165 1999/12/21 11:04:36 drochner Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -2187,7 +2187,7 @@
 }
 
 /*
- * Initialize UART to known state.
+ * Initialize UART for use as console or KGDB line.
  */
 int
 cominit(iot, iobase, rate, frequency, cflag, iohp)
@@ -2209,7 +2209,7 @@
        bus_space_write_1(iot, ioh, com_dlbl, rate);
        bus_space_write_1(iot, ioh, com_dlbh, rate >> 8);
        bus_space_write_1(iot, ioh, com_lcr, cflag2lcr(cflag));
-       bus_space_write_1(iot, ioh, com_mcr, 0);
+       bus_space_write_1(iot, ioh, com_mcr, MCR_DTR | MCR_RTS);
        bus_space_write_1(iot, ioh, com_fifo,
            FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_1);
        bus_space_write_1(iot, ioh, com_ier, 0);



Home | Main Index | Thread Index | Old Index