v65c816-big: fix bug in devtty introduced in peek conversion
authorAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 23:15:16 +0000 (23:15 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 23:15:16 +0000 (23:15 +0000)
Kernel/platform-v65c816-big/devtty.c

index 6dbbb00..6117fdf 100644 (file)
@@ -57,7 +57,7 @@ void tty_poll(void)
 {
         uint8_t x;
         
-        x = peek(0x21);
+        x = peek(0x21) & 1 ;
         if (x) {
                x = peek(0x20);
                tty_inproc(1, x);