From e5b131c637bc304785d73813c72cdbcfc717fa9d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 22 May 2015 23:09:37 +0100 Subject: [PATCH] zx128: fix keyboard polling The NMOS di/irq_restore bug is now fixed so we can go back to polling here --- Kernel/platform-zx128/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-zx128/main.c b/Kernel/platform-zx128/main.c index 35acd631..89f146c7 100644 --- a/Kernel/platform-zx128/main.c +++ b/Kernel/platform-zx128/main.c @@ -19,9 +19,10 @@ void pagemap_init(void) for the polled ports */ void platform_idle(void) { - __asm - halt - __endasm; + /* We don't want an idle poll and IRQ driven tty poll at the same moment */ + irqflags_t irq = di(); + tty_pollirq(); + irqrestore(irq); } void platform_interrupt(void) -- 2.34.1