From: Alan Cox Date: Thu, 4 Jun 2015 09:13:09 +0000 (+0100) Subject: dragon-nx32: don't re-enter the scrolling routines while scrolling X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3563e5ff8f7255c5110d7532d19e6632db524023;p=FUZIX.git dragon-nx32: don't re-enter the scrolling routines while scrolling If you do it ends badly --- diff --git a/Kernel/platform-dragon-nx32/devtty.c b/Kernel/platform-dragon-nx32/devtty.c index 947a23fb..92d0205f 100644 --- a/Kernel/platform-dragon-nx32/devtty.c +++ b/Kernel/platform-dragon-nx32/devtty.c @@ -48,8 +48,13 @@ ttyready_t tty_writeready(uint8_t minor) void tty_putc(uint8_t minor, unsigned char c) { + irqflags_t irq; if (minor == 1) { + /* We need a better way generally to handle keyboard v + VT */ + irq = di(); vtoutput(&c, 1); + irqrestore(irq); } else *uart_data = c; /* Data */ }