From bb659b1ad691158d125d13ef8b55e13aead375b7 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Mon, 23 Apr 2007 14:59:32 +0000 Subject: [PATCH] Disabled ser_putc for reporting debug internal to tty over the serial line. Disabled return statement for serial debug input in the kernel. --- drivers/tty/console.c | 3 +++ drivers/tty/rs232.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/drivers/tty/console.c b/drivers/tty/console.c index 4fd10c30b..5a186a3f7 100644 --- a/drivers/tty/console.c +++ b/drivers/tty/console.c @@ -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]); } diff --git a/drivers/tty/rs232.c b/drivers/tty/rs232.c index 02176b8f9..a0afd5450 100644 --- a/drivers/tty/rs232.c +++ b/drivers/tty/rs232.c @@ -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 */ -- 2.44.0