Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic As for the console of ns16750, comintr() may be c...
details: https://anonhg.NetBSD.org/src/rev/db47055c6430
branches: trunk
changeset: 788877:db47055c6430
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sat Jul 27 06:54:35 2013 +0000
description:
As for the console of ns16750, comintr() may be called before comopen().
If sc_lcr is not initialized at this time, console will be in an ugly state.
diffstat:
sys/dev/ic/com.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 523f1fb943de -r db47055c6430 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Sat Jul 27 06:43:56 2013 +0000
+++ b/sys/dev/ic/com.c Sat Jul 27 06:54:35 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.311 2013/07/27 06:43:56 kiyohara Exp $ */
+/* $NetBSD: com.c,v 1.312 2013/07/27 06:54:35 kiyohara Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.311 2013/07/27 06:43:56 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.312 2013/07/27 06:54:35 kiyohara Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -416,6 +416,11 @@
(u_long)comcons_info.regs.cr_iobase);
}
+#ifdef COM_16750
+ /* Use in comintr(). */
+ sc->sc_lcr = cflag2lcr(comcons_info.cflag);
+#endif
+
/* Make sure the console is always "hardwired". */
delay(10000); /* wait for output to finish */
if (is_console) {
Home |
Main Index |
Thread Index |
Old Index