Page MenuHomeFreeBSD

D17102.id47873.diff
No OneTemporary

D17102.id47873.diff

Index: stand/i386/boot0/Makefile
===================================================================
--- stand/i386/boot0/Makefile
+++ stand/i386/boot0/Makefile
@@ -14,6 +14,7 @@
# -DCHECK_DRIVE enable checking drive number
# -DONLY_F_KEYS accept only Fx keys in console
# -DTEST print drive number on entry
+# -DRESET_TERM send terminal reset command
#
OPTS ?= -DVOLUME_SERIAL -DPXE
CFLAGS += ${OPTS}
Index: stand/i386/boot0/boot0.S
===================================================================
--- stand/i386/boot0/boot0.S
+++ stand/i386/boot0/boot0.S
@@ -216,6 +216,14 @@
callw bioscom
#endif
+#if defined(SIO) && defined(RESET_TERM)
+ /*
+ * ANSI / VT100 command to reset all terminal attributes
+ */
+ movw $resetterm,%si # Reset
+ callw putstr # terminal
+#endif
+
/*
* If the 'setdrv' flag is set in the boot sector, use the drive
* number from the boot sector at 'setdrv_num'.
@@ -584,6 +592,14 @@
popw %si # Restore
retw # To caller
+#if defined(SIO) && defined(RESET_TERM)
+ /*
+ * Reset teminal ANSI/VT100 sequence
+ */
+resetterm:
+ .byte 0x1b; .byte 'c'|0x80
+#endif
+
/*
* Various menu strings. 'item' goes after 'prompt' to save space.
* Also use shorter versions to make room for the PXE/INT18 code.
Index: stand/i386/boot0sio/Makefile
===================================================================
--- stand/i386/boot0sio/Makefile
+++ stand/i386/boot0sio/Makefile
@@ -5,4 +5,8 @@
PROGNAME= boot0sio
CFLAGS+= -DSIO
+.if defined(BOOT_BOOT0_RESET_TERM)
+OPTS ?= -DRESET_TERM -DSAVE_MEMORY -DPXE
+.endif
+
.include "${.CURDIR}/../boot0/Makefile"

File Metadata

Mime Type
text/plain
Expires
Mon, May 18, 3:51 PM (9 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33254894
Default Alt Text
D17102.id47873.diff (1 KB)

Event Timeline