summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormlelstv <mlelstv@NetBSD.org>2013-05-01 07:38:00 +0000
committermlelstv <mlelstv@NetBSD.org>2013-05-01 07:38:00 +0000
commit45734347bc659049cda0c19fba0e3c0dbf717437 (patch)
tree898c86928f50852f18cc7114639fddd574fafdbe /sys/dev
parent5070bd3758452812968f53142347f23d91999b49 (diff)
For a polled console incoming characters are buffered on output.
The buffer is never passed to the regular tty routines and can survive from early boot to halt where it is read by the "press any continue to reboot" loops. As a workaround, just kill the read-ahead buffer when switching from and to polled mode.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/com.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 8b2478169a1..4ab71723bee 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.309 2013/04/20 11:52:40 rkujawa Exp $ */
+/* $NetBSD: com.c,v 1.310 2013/05/01 07:38:00 mlelstv 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.309 2013/04/20 11:52:40 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.310 2013/05/01 07:38:00 mlelstv Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -2352,6 +2352,7 @@ void
comcnpollc(dev_t dev, int on)
{
+ com_readaheadcount = 0;
}
#ifdef KGDB