From 5974c8e0abff55a2805b10ee5e58a9f0e7897269 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 8 Oct 2015 16:31:04 +0100 Subject: [PATCH] coco2: update devtty code for new irq, also remove bogus attrs --- Kernel/platform-coco2/devtty.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Kernel/platform-coco2/devtty.c b/Kernel/platform-coco2/devtty.c index a317e488..fc8d64c3 100644 --- a/Kernel/platform-coco2/devtty.c +++ b/Kernel/platform-coco2/devtty.c @@ -25,8 +25,7 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ {tbuf2, tbuf2, tbuf2, TTYSIZ, 0, TTYSIZ / 2} }; -uint8_t vtattr_cap = VTA_INVERSE|VTA_UNDERLINE|VTA_ITALIC|VTA_BOLD| - VTA_OVERSTRIKE|VTA_NOCURSOR; +uint8_t vtattr_cap = 0; /* tty1 is the screen tty2 is the serial port */ @@ -52,13 +51,9 @@ ttyready_t tty_writeready(uint8_t minor) void tty_putc(uint8_t minor, unsigned char c) { irqflags_t irq; - if (minor == 1) { - /* We need a better way generally to handle keyboard v - VT */ - irq = di(); + if (minor == 1) vtoutput(&c, 1); - irqrestore(irq); - } else + else *uart_data = c; /* Data */ } -- 2.34.1