From: Alan Cox Date: Sat, 9 Jan 2016 21:15:22 +0000 (+0000) Subject: z80pack: fix wakeup on console 2 and console 3 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6e483079fbe39ce24131509decdf584dd0b60f0d;p=FUZIX.git z80pack: fix wakeup on console 2 and console 3 Fixes the "must telnet before starting fuzix" bug --- diff --git a/Kernel/dev/z80pack/devtty.c b/Kernel/dev/z80pack/devtty.c index 10b71693..eac9dbca 100644 --- a/Kernel/dev/z80pack/devtty.c +++ b/Kernel/dev/z80pack/devtty.c @@ -78,12 +78,12 @@ void tty_pollirq(void) c = tty3data; tty_inproc(3, c); } - if ((ttypoll & 2) && (tty2stat & 2)) { - ttypoll &= ~2; + if ((ttypoll & 4) && (tty2stat & 2)) { + ttypoll &= ~4; wakeup(&ttydata[2]); } - if ((ttypoll & 4) && (tty3stat & 2)) { - ttypoll &= ~4; + if ((ttypoll & 8) && (tty3stat & 2)) { + ttypoll &= ~8; wakeup(&ttydata[3]); } }