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)
_______________________________________________
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