From f9d2f5d4e3fc7300b0f206dfdaa2e53c647abf67 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 2 Jul 2018 00:56:32 +0100 Subject: [PATCH] trs80m1: Only poll the serial port 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-trs80m1/main.c b/Kernel/platform-trs80m1/main.c index 647c1ecf..f3c3b1ad 100644 --- a/Kernel/platform-trs80m1/main.c +++ b/Kernel/platform-trs80m1/main.c @@ -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); } -- 2.34.1