trs80m1: don't do kernel video writes when in micrografyx mode
authorAlan Cox <alan@linux.intel.com>
Fri, 6 Jul 2018 21:20:50 +0000 (22:20 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 6 Jul 2018 21:20:50 +0000 (22:20 +0100)
Kernel/platform-trs80m1/devtty.c

index 81ff082..d28fafc 100644 (file)
@@ -7,6 +7,7 @@
 #include <devtty.h>
 #include <input.h>
 #include <devinput.h>
+#include <devgfx.h>
 #include <stdarg.h>
 
 static char tbuf1[TTYSIZ];
@@ -89,6 +90,8 @@ void tty_putc(uint8_t minor, unsigned char c)
     if (minor == 3)
         tr1865_rxtx = c;
     else {
+        if (video_mode == 2)   /* Micrografyx */
+          return;
         irq = di();
         if (curtty != minor -1) {
             /* Kill the cursor as we are changing the memory buffers. If