summaryrefslogtreecommitdiff
path: root/i386/configfrag.ac
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-26 21:57:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-02-26 21:57:11 +0100
commitdd687a62dfb81ec125f41a257229f58d80b7044d (patch)
treea7c7d54acf611248e4c64a508717e8dd076e47c7 /i386/configfrag.ac
parent3d095d907e0047621950b3dcd9ff8b1f3d596797 (diff)
Add console=comN boot option to enable serial console
* i386/configfrag.ac (RCLINE, RCADDR): Remove defines. * i386/i386at/com.c: Include <string.h> and <util/atoi.h> [!RCLINE] (RCBAUD, comcndev, comcnprobe, comcninit, comcngetc, comcnputc): Declare and define macro, variable, and functions. (rcline): New variable. (kernel_cmdline): New declaration. (comcnprobe): Detect "console=comN" option and set rcline accordingly, use rcline instead of RCLINE for serial console selection. * i386/i386at/cons_conf.c [NCOM>0 && !RCLINE] (comcnprobe, comcninit, comcngetc, comcnputc): Declare functions. [NCOM>0 && !RCLINE] (constab): Enable "com" console. * i386/i386at/kd_event.c (kbdopen): Call kdinit function, for when the VGA+pckbd console was not initialized.
Diffstat (limited to 'i386/configfrag.ac')
-rw-r--r--i386/configfrag.ac16
1 files changed, 0 insertions, 16 deletions
diff --git a/i386/configfrag.ac b/i386/configfrag.ac
index 1132b69..e4ce97e 100644
--- a/i386/configfrag.ac
+++ b/i386/configfrag.ac
@@ -66,22 +66,6 @@ AC_DEFINE_UNQUOTED([NCOM], [$ncom], [NCOM])
# i386/bogus/lpr.h
AC_DEFINE_UNQUOTED([NLPR], [$nlpr], [NLPR])
-
-# i386/bogus/rc.h
-#
-# This controls whether or not we use a serial line for the console
-# (ie, remote console).
-#
-#
-# Values for RCLINE:
-# -1 = disable
-# 0 = port 0x3f8/irq 4 (DOS COM1)
-# 1 = port 0x2f8/irq 3 (DOS COM2)
-# 2 = port 0x3e8/irq 5 (DOS COM3)
-# 3 = port 0x2e8/irq 9 (DOS COM4)
-#
-AC_DEFINE([RCLINE], [-1], [com port for the remote console])
-AC_DEFINE([RCADDR], [0x3f8], [where is the com port for the remote console])
#
# Options.