:: commit aeb805620dfa7b131d87ffd8aca7f3d4ca513a16

Mintsuki <mintsuki@protonmail.com> — 2025-09-15 18:07

parents: 0ada1840dc

drivers/serial: Default baud rate to 115200 instead of 9600 on BIOS

diff --git a/CONFIG.md b/CONFIG.md
index 0a22ef62..0fdcefec 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -82,7 +82,7 @@ Miscellaneous:
   the menu and disable quiet mode.
 * `serial` - If set to `yes`, enable serial I/O for the bootloader.
 * `serial_baudrate` - If `serial` is set to `yes`, this specifies the baudrate
-  to use for serial I/O. Defaults to `9600`. BIOS only, ignored with Limine
+  to use for serial I/O. Defaults to `115200`. BIOS only, ignored with Limine
   UEFI.
 * `default_entry` - 1-based entry index of the entry which will be
   automatically selected at startup. If unspecified, it is `1`.
diff --git a/common/drivers/serial.c b/common/drivers/serial.c
index 4038caf9..125de152 100644
--- a/common/drivers/serial.c
+++ b/common/drivers/serial.c
@@ -18,7 +18,7 @@ static void serial_initialise(void) {
 
     char *baudrate_s = config_get_value(NULL, 0, "SERIAL_BAUDRATE");
     if (baudrate_s == NULL) {
-        serial_baudrate = 9600;
+        serial_baudrate = 115200;
     } else {
         serial_baudrate = strtoui(baudrate_s, NULL, 10);
     }
tab: 248 wrap: offon