]> Zhao Yanbai Git Server - minix.git/commitdiff
Disabled ser_putc for reporting debug internal to tty over the serial line.
authorPhilip Homburg <philip@cs.vu.nl>
Mon, 23 Apr 2007 14:59:32 +0000 (14:59 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Mon, 23 Apr 2007 14:59:32 +0000 (14:59 +0000)
Disabled return statement for serial debug input in the kernel.

drivers/tty/console.c
drivers/tty/rs232.c

index 4fd10c30b9474f5e13785df3d670a904c08af0f3..5a186a3f76236b723117244bfbdd351b2eb2fe59 100644 (file)
@@ -1170,6 +1170,9 @@ int c;                            /* character to print */
   if (c != 0) {
        if (c == '\n') cons_putk('\r');
        out_char(&cons_table[0], (int) c);
+#if 0
+       ser_putc(c);
+#endif
   } else {
        flush(&cons_table[0]);
   }
index 02176b8f97928aa1ca92bd35f3822da0efa464b6..a0afd5450582333848d8f0785ad578c707684c64 100644 (file)
@@ -891,6 +891,10 @@ register rs232_t *rs;              /* line with input interrupt */
 
   unsigned long c;
 
+#if 0  /* Enable this if you want serial input in the kernel */
+  return;
+#endif
+
 #if (MACHINE == IBM_PC)
   sys_inb(rs->recv_port, &c);
 #else /* MACHINE == ATARI */