svn commit: r357593 - head/sys/riscv/riscv

John Baldwin jhb at FreeBSD.org
Wed Feb 5 20:11:09 UTC 2020


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)


More information about the svn-src-all mailing list