NetBSD-Bugs archive

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

Re: kern/50395: Loss of characters in serial port communication between gdb and kgdb_stub



On Nov 2,  4:10pm, vchaves%ymail.com@localhost (vchaves%ymail.com@localhost) wrote:
-- Subject: kern/50395: Loss of characters in serial port communication betwe

Perhaps this?

--- com.c       4 May 2015 22:59:36 -0000       1.336
+++ com.c       2 Nov 2015 16:23:11 -0000
@@ -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,10 @@
 
        /* Turn off interrupts. */
        if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) {
-               sc->sc_ier = IER_ERXRDY; /* interrupt on break */
+               if (ISSET(sc->sc_hwflags, COM_HW_KGDB))
+                       sc->sc_ier = IER_ERLS; /* interrupt on line break */
+               else
+                       sc->sc_ier = IER_ERXRDY; /* interrupt on receive */
                if ((sc->sc_type == COM_TYPE_PXA2x0) ||
                    (sc->sc_type == COM_TYPE_INGENIC) ||
                    (sc->sc_type == COM_TYPE_TEGRA))


Or do we always want ERLS on shutdown?

christos


Home | Main Index | Thread Index | Old Index