aboutsummaryrefslogtreecommitdiff
path: root/xen
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2024-01-19 03:12:24 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-01-20 18:49:22 +0100
commitdd4dcfdefb3e8fc37b6f113a58cd1c628e096dee (patch)
tree933219289b902a39ad1beb3077251fed7e85595c /xen
parent6582babd42b3937ac199d03e3df960e107c24c77 (diff)
downloadgnumach-dd4dcfdefb3e8fc37b6f113a58cd1c628e096dee.tar.gz
gnumach-dd4dcfdefb3e8fc37b6f113a58cd1c628e096dee.tar.bz2
gnumach-dd4dcfdefb3e8fc37b6f113a58cd1c628e096dee.zip
console: Fix baud rate on com ports, use 115200 default baud, 8 data bits
TESTED: By booting gnumach off an HP T620 with console=com0 and receiving 115200 8N1 console on another machine connected via the serial port in minicom. Without this patch, part of the console is garbled by mismatching com params (9600 7N1). Message-ID: <20240119031214.691086-1-damien@zamaudio.com>
Diffstat (limited to 'xen')
-rw-r--r--xen/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/console.c b/xen/console.c
index e0ec0ca4..9ceb6ddf 100644
--- a/xen/console.c
+++ b/xen/console.c
@@ -191,8 +191,8 @@ int hypcnopen(dev_t dev, int flag, io_req_t ior)
simple_lock_nocheck(&tp->t_lock.slock);
tp->t_oproc = hypcnstart;
tp->t_stop = hypcnstop;
- tp->t_ospeed = tp->t_ispeed = B9600;
- tp->t_flags = ODDP|EVENP|ECHO|CRMOD|XTABS;
+ tp->t_ospeed = tp->t_ispeed = B115200;
+ tp->t_flags = ODDP|EVENP|ECHO|CRMOD|XTABS|LITOUT;
}
tp->t_state |= TS_CARR_ON;
simple_unlock_irq(o_pri, &tp->t_lock);