summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2005-08-18 01:39:43 +0000
committeriedowse <iedowse@FreeBSD.org>2005-08-18 01:39:43 +0000
commit11293f3595866129f0cead6cc0cc9feb2f9fc1e7 (patch)
tree2bd3f8b92928c4902f341d508484eca99bcf78ce /sys/boot/common
parent1161399eefe49cc63043fec5cc9e5ba8c9a2cb32 (diff)
downloadFreeBSD-src-11293f3595866129f0cead6cc0cc9feb2f9fc1e7.zip
FreeBSD-src-11293f3595866129f0cead6cc0cc9feb2f9fc1e7.tar.gz
Add a "comconsole_speed" loader variable that can be used to change
the serial console speed (i386 and amd64 only). If the previous stage boot loader requested a serial console (RB_SERIAL or RB_MULTIPLE) then the default speed is determined from the current serial port speed. Otherwise it is set to 9600 or the value of BOOT_COMCONSOLE_SPEED at compile time. This makes it possible to set the serial port speed once in /boot.config and the setting will propagate to boot2, loader and the kernel serial console.
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/loader.815
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/boot/common/loader.8 b/sys/boot/common/loader.8
index 13331c1..3e99eea 100644
--- a/sys/boot/common/loader.8
+++ b/sys/boot/common/loader.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 27, 2005
+.Dd August 18, 2005
.Dt LOADER 8
.Os
.Sh NAME
@@ -392,6 +392,19 @@ by the kernel during the boot phase.
List of semicolon-separated search path for bootable kernels.
The default is
.Dq Li kernel .
+.It Va comconsole_speed
+Defines the speed of the serial console (i386 and amd64 only).
+If the previous boot stage indicated that a serial console is in use
+then this variable is initialized to the current speed of the console
+serial port.
+Otherwise it is set to 9600 unless this was overridden using the
+.Va BOOT_COMCONSOLE_SPEED
+variable when
+.Nm
+was compiled.
+Changes to the
+.Va comconsole_speed
+variable take effect immediately.
.It Va console
Defines the current console or consoles.
Multiple consoles may be specified.
OpenPOWER on IntegriCloud