Date: Wed, 5 Feb 2020 20:11:09 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357593 - head/sys/riscv/riscv Message-ID: <202002052011.015KB9EB084350@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Wed Feb 5 20:11:08 2020 New Revision: 357593 URL: https://svnweb.freebsd.org/changeset/base/357593 Log: Remove stale workaround for the htif console. In practice this discarded all characters entered at the DDB prompt. Reviewed by: br MFC after: 1 week Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D23509 Modified: head/sys/riscv/riscv/riscv_console.c Modified: head/sys/riscv/riscv/riscv_console.c ============================================================================== --- head/sys/riscv/riscv/riscv_console.c Wed Feb 5 20:08:01 2020 (r357592) +++ head/sys/riscv/riscv/riscv_console.c Wed Feb 5 20:11:08 2020 (r357593) @@ -206,20 +206,6 @@ riscv_cngetc(struct consdev *cp) { int ch; -#if defined(KDB) - /* - * RISCVTODO: BBL polls for console data on timer interrupt, - * but interrupts are turned off in KDB. - * So we currently do not have console in KDB. - */ - if (kdb_active) { - ch = sbi_console_getchar(); - while (ch) { - ch = sbi_console_getchar(); - } - } -#endif - ch = sbi_console_getchar(); if (ch > 0 && ch < 0xff) { #if defined(KDB)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002052011.015KB9EB084350>