summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/pxeldr
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-09-03 08:12:20 +0000
committerphk <phk@FreeBSD.org>2003-09-03 08:12:20 +0000
commitfc9a441e3e8cc7b3b61dd821ee1616387dfe7268 (patch)
tree0071006c03bad8f4f8429ee0ae51c16f6cbe2c77 /sys/boot/i386/pxeldr
parent4f4a80884a47d4f989c474cfea633b3f0d5d08a6 (diff)
downloadFreeBSD-src-fc9a441e3e8cc7b3b61dd821ee1616387dfe7268.zip
FreeBSD-src-fc9a441e3e8cc7b3b61dd821ee1616387dfe7268.tar.gz
Add BOOT_PXELDR_ALWAYS_SERIAL option which forces serial console.
Diffstat (limited to 'sys/boot/i386/pxeldr')
-rw-r--r--sys/boot/i386/pxeldr/Makefile5
-rw-r--r--sys/boot/i386/pxeldr/pxeldr.S5
-rw-r--r--sys/boot/i386/pxeldr/pxeldr.s5
3 files changed, 15 insertions, 0 deletions
diff --git a/sys/boot/i386/pxeldr/Makefile b/sys/boot/i386/pxeldr/Makefile
index 6ba21a3..f471595 100644
--- a/sys/boot/i386/pxeldr/Makefile
+++ b/sys/boot/i386/pxeldr/Makefile
@@ -17,6 +17,11 @@ M4?= m4
M4FLAGS+= -DPROBE_KEYBOARD
.endif
+.if defined(BOOT_PXELDR_ALWAYS_SERIAL)
+M4FLAGS+= -DALWAYS_SERIAL
+.endif
+
+
.if exists(${.OBJDIR}/../loader)
LOADERBIN= ${.OBJDIR}/../loader/loader.bin
.else
diff --git a/sys/boot/i386/pxeldr/pxeldr.S b/sys/boot/i386/pxeldr/pxeldr.S
index 05383e0..fa93c9c 100644
--- a/sys/boot/i386/pxeldr/pxeldr.S
+++ b/sys/boot/i386/pxeldr/pxeldr.S
@@ -110,6 +110,11 @@ start: cld # string ops inc
orb $KARGS_FLAGS_PXE, 0x8(%bx) # kargs->bootflags |=
# KARGS_FLAGS_PXE
popl 0xc(%bx) # kargs->pxeinfo = *PXENV+
+ifdef(`ALWAYS_SERIAL',`
+#
+# set the RBX_SERIAL bit in the howto byte.
+ orl $RB_SERIAL, (%bx) # enable serial console
+')
ifdef(`PROBE_KEYBOARD',`
#
# Look at the BIOS data area to see if we have an enhanced keyboard. If not,
diff --git a/sys/boot/i386/pxeldr/pxeldr.s b/sys/boot/i386/pxeldr/pxeldr.s
index 05383e0..fa93c9c 100644
--- a/sys/boot/i386/pxeldr/pxeldr.s
+++ b/sys/boot/i386/pxeldr/pxeldr.s
@@ -110,6 +110,11 @@ start: cld # string ops inc
orb $KARGS_FLAGS_PXE, 0x8(%bx) # kargs->bootflags |=
# KARGS_FLAGS_PXE
popl 0xc(%bx) # kargs->pxeinfo = *PXENV+
+ifdef(`ALWAYS_SERIAL',`
+#
+# set the RBX_SERIAL bit in the howto byte.
+ orl $RB_SERIAL, (%bx) # enable serial console
+')
ifdef(`PROBE_KEYBOARD',`
#
# Look at the BIOS data area to see if we have an enhanced keyboard. If not,
OpenPOWER on IntegriCloud