Hi Keith
You forgot to include that patch in the 1.4 release.
It makes possible to compile kdb with serial console and without
keyboard support.
Later, Juan.
diff -urN --exclude-from=/home/lfcia/quintela/work/kernel/exclude
kdb/arch/i386/kdb/kdba_io.c kdb2/arch/i386/kdb/kdba_io.c
--- kdb/arch/i386/kdb/kdba_io.c Tue Sep 5 22:36:23 2000
+++ kdb2/arch/i386/kdb/kdba_io.c Tue Sep 5 22:37:17 2000
@@ -90,6 +90,7 @@
#endif
}
+#if defined(CONFIG_SERIAL_CONSOLE)
/* Check if there is a byte ready at the serial port */
static int get_serial_char(void)
{
@@ -118,7 +119,9 @@
}
return -1;
}
+#endif /* CONFIG_SERIAL_CONSOLE */
+#if defined(CONFIG_VT)
/*
* Check if the keyboard controller has a keypress for us.
* Some parts (Enter Release, LED change) are still blocking polled here,
@@ -268,6 +271,7 @@
return keychar & 0xff;
}
+#endif /* CONFIG_VT */
#ifdef KDB_BLINK_LED
@@ -294,8 +295,12 @@
typedef int (*get_char_func)(void);
static get_char_func poll_funcs[] = {
+#if defined(CONFIG_VT)
get_kbd_char,
+#endif
+#if defined(CONFIG_SERIAL_CONSOLE)
get_serial_char,
+#endif
#ifdef KDB_BLINK_LED
blink_led,
#endif
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
|