Author: jhibbits
Date: Mon May 28 01:59:48 2018
New Revision: 334266
URL: https://svnweb.freebsd.org/changeset/base/334266

Log:
  Make ALT_BREAK_TO_DEBUGGER work with OPAL console
  
  Match other consoles by using the higher level cngetc() in the interrupt
  handler, so that kdb_alt_break() can check for console break.

Modified:
  head/sys/powerpc/powernv/opal_console.c

Modified: head/sys/powerpc/powernv/opal_console.c
==============================================================================
--- head/sys/powerpc/powernv/opal_console.c     Mon May 28 01:58:49 2018        
(r334265)
+++ head/sys/powerpc/powernv/opal_console.c     Mon May 28 01:59:48 2018        
(r334266)
@@ -475,11 +475,10 @@ uart_opal_intr(void *v)
 {
        struct uart_opal_softc *sc = v;
        struct tty *tp = sc->tp;
-       unsigned char c;
-       int len;
+       int c;
 
        tty_lock(tp);
-       while ((len = uart_opal_get(sc, &c, 1)) > 0)
+       while ((c = uart_opal_cngetc(NULL)) > 0)
                ttydisc_rint(tp, c, 0);
        ttydisc_rint_done(tp);
        tty_unlock(tp);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to