Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2020 20:10:01 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r360854 - stable/12/sys/riscv/riscv
Message-ID:  <202005092010.049KA1NE005718@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Sat May  9 20:10:01 2020
New Revision: 360854
URL: https://svnweb.freebsd.org/changeset/base/360854

Log:
  MFC 357593: Remove stale workaround for the htif console.
  
  In practice this discarded all characters entered at the DDB prompt.

Modified:
  stable/12/sys/riscv/riscv/riscv_console.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/riscv/riscv/riscv_console.c
==============================================================================
--- stable/12/sys/riscv/riscv/riscv_console.c	Sat May  9 20:02:48 2020	(r360853)
+++ stable/12/sys/riscv/riscv/riscv_console.c	Sat May  9 20:10:01 2020	(r360854)
@@ -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?202005092010.049KA1NE005718>