From a8fc5b2ba126706fa5e7cf14d35e62fa3a5aafd4 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 11 Jul 2020 23:37:09 +0200 Subject: [PATCH] Fixed a serial IRQ bug on the 82091AA. --- src/sio/sio_82091aa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sio/sio_82091aa.c b/src/sio/sio_82091aa.c index c6e2effb8..16c7334f5 100644 --- a/src/sio/sio_82091aa.c +++ b/src/sio/sio_82091aa.c @@ -117,7 +117,7 @@ serial_handler(i82091aa_t *dev, int uart) break; } - serial_setup(dev->uart[uart], uart_port, (dev->regs[0x20] & 0x10) ? 4 : 3); + serial_setup(dev->uart[uart], uart_port, (dev->regs[reg] & 0x10) ? 4 : 3); }