trs80m1: Only poll the serial port
authorAlan Cox <alan@linux.intel.com>
Sun, 1 Jul 2018 23:56:32 +0000 (00:56 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 1 Jul 2018 23:56:32 +0000 (00:56 +0100)
Otherwise we try and ack no existant interrupts, our timers go off and our
keyboard repeat breaks.

With this fixed xtrs works even without delays (ie simulating a 200MHz+ Z80)

Kernel/platform-trs80m1/main.c

index 647c1ec..f3c3b1a 100644 (file)
@@ -12,11 +12,11 @@ uint8_t vtattr_cap;
 struct blkbuf *bufpool_end = bufpool + NBUFS;
 
 /* We need to spin here because we don't have interrupts for the UART on the
-   model I */
+   model I, or for the keyboard on model I or III */
 void platform_idle(void)
 {
   irqflags_t irq = di();
-  platform_interrupt();
+  tty_interrupt();
   irqrestore(irq);
 }