diff options
| author | drochner <drochner@NetBSD.org> | 1999-12-21 11:04:36 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 1999-12-21 11:04:36 +0000 |
| commit | b95651b752d46dd9c8bc2217e0d8c47f69634904 (patch) | |
| tree | e7eef33eaf8955ece0f60e754f34cb1ddb144822 /sys/dev | |
| parent | 03c8221ad00db1171d0d5c5860cdd6272748acda (diff) | |
set carrier early if used as console or kgdb line, fixes PR kern/6547
by Andreas Gustafsson, gson@iengines.com
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/com.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index d0d988c74d6..1f96702db06 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -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 @@ com_common_putc(iot, ioh, c) } /* - * 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 @@ cominit(iot, iobase, rate, frequency, cflag, iohp) 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); |
