Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150995558
D15862.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D15862.diff
View Options
Index: head/stand/i386/gptboot/gptboot.c
===================================================================
--- head/stand/i386/gptboot/gptboot.c
+++ head/stand/i386/gptboot/gptboot.c
@@ -285,6 +285,16 @@
bootinfo.bi_memsizes_valid++;
bootinfo.bi_bios_dev = dsk.drive;
+ /*
+ * Initialize the serial console early with a modern default of 115200.
+ * Later, we'll read PATH_DOTCONFIG and reconfigure serial according
+ * to the configuration provided.
+ */
+ opts = OPT_SET(RBX_DUAL);
+ ioctrl = (IO_SERIAL|IO_KEYBOARD);
+ if (sio_init(115200) != 0)
+ ioctrl &= ~IO_SERIAL;
+
#ifdef LOADER_GELI_SUPPORT
geli_init();
#endif
Index: head/stand/i386/zfsboot/zfsboot.c
===================================================================
--- head/stand/i386/zfsboot/zfsboot.c
+++ head/stand/i386/zfsboot/zfsboot.c
@@ -693,6 +693,16 @@
}
setheap(heap_next, heap_end);
+ /*
+ * Initialize the serial console early with a modern default of 115200.
+ * Later, we'll read PATH_DOTCONFIG and reconfigure serial according
+ * to the configuration provided.
+ */
+ opts = OPT_SET(RBX_DUAL);
+ ioctrl = (IO_SERIAL|IO_KEYBOARD);
+ if (sio_init(115200) != 0)
+ ioctrl &= ~IO_SERIAL;
+
dsk = malloc(sizeof(struct dsk));
dsk->drive = *(uint8_t *)PTOV(ARGS);
dsk->type = dsk->drive & DRV_HARD ? TYPE_AD : TYPE_FD;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 9:01 AM (7 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30953866
Default Alt Text
D15862.diff (1 KB)
Attached To
Mode
D15862: gptboot, zfsboot, gptzfsboot: Enable the video and serial consoles early
Attached
Detach File
Event Timeline
Log In to Comment