Date: Mon, 28 May 2018 01:59:49 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334266 - head/sys/powerpc/powernv Message-ID: <201805280159.w4S1xnkG055241@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805280159.w4S1xnkG055241>