From: Alan Cox Date: Sun, 25 Nov 2018 01:59:10 +0000 (+0000) Subject: zxdiv: halt on idle X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=766aa4708bdbd831864c0e7a0c39c4780f469e46;p=FUZIX.git zxdiv: halt on idle --- diff --git a/Kernel/platform-zxdiv/main.c b/Kernel/platform-zxdiv/main.c index f2e374f0..85e6711f 100644 --- a/Kernel/platform-zxdiv/main.c +++ b/Kernel/platform-zxdiv/main.c @@ -12,9 +12,9 @@ uint16_t swap_dev = 0xFFFF; void platform_idle(void) { /* We don't want an idle poll and IRQ driven tty poll at the same moment */ - irqflags_t irq = di(); - tty_pollirq(); - irqrestore(irq); + __asm + halt + __endasm; } void platform_interrupt(void)