Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic PR/50395: Vicente Chaves de Melo: Loss of charact...
details: https://anonhg.NetBSD.org/src/rev/972ad0d383c5
branches: trunk
changeset: 811512:972ad0d383c5
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 02 17:45:13 2015 +0000
description:
PR/50395: Vicente Chaves de Melo: Loss of characters in serial port
communication between gdb and kgdb_stub: switch to line break interrupt
both when entering KGDB and also on shutdown so we can re-enter the debugger
with BREAK.
diffstat:
sys/dev/ic/com.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r efa3cf36093e -r 972ad0d383c5 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Mon Nov 02 17:40:20 2015 +0000
+++ b/sys/dev/ic/com.c Mon Nov 02 17:45:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.336 2015/05/04 22:59:36 jmcneill Exp $ */
+/* $NetBSD: com.c,v 1.337 2015/11/02 17:45:13 christos 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.336 2015/05/04 22:59:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.337 2015/11/02 17:45:13 christos Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -377,7 +377,7 @@
{
/* Turn on line break interrupt, set carrier. */
- sc->sc_ier = IER_ERXRDY;
+ sc->sc_ier = IER_ERLS;
if (sc->sc_type == COM_TYPE_PXA2x0)
sc->sc_ier |= IER_EUART | IER_ERXTOUT;
if (sc->sc_type == COM_TYPE_INGENIC ||
@@ -812,7 +812,7 @@
/* Turn off interrupts. */
if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) {
- sc->sc_ier = IER_ERXRDY; /* interrupt on break */
+ sc->sc_ier = IER_ERLS; /* interrupt on line break */
if ((sc->sc_type == COM_TYPE_PXA2x0) ||
(sc->sc_type == COM_TYPE_INGENIC) ||
(sc->sc_type == COM_TYPE_TEGRA))
Home |
Main Index |
Thread Index |
Old Index