Hi
This patch makes KDB compile indeed if CONFIG_VT is not
defined in .config. That is quite useful for people that have
headless machines and only compile the console driver to be
able to use kdb.
Later, Juan.
diff -urN --exclude-from=/home/lfcia/quintela/work/kernel/exclude
base/arch/i386/kdb/kdba_io.c working/arch/i386/kdb/kdba_io.c
--- base/arch/i386/kdb/kdba_io.c Sun Jul 23 22:07:05 2000
+++ working/arch/i386/kdb/kdba_io.c Mon Jul 24 05:06:07 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
+#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
#ifdef KDB_BLINK_LED
@@ -291,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
|