From 8b2f58a2c957e23ef7ab629e63d76f5315e532d6 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 1 Oct 2018 23:52:27 +0100 Subject: [PATCH] cromemco: update for tty masks --- Kernel/platform-cromemco/devtty.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-cromemco/devtty.c b/Kernel/platform-cromemco/devtty.c index 71417792..ffdb4bc1 100644 --- a/Kernel/platform-cromemco/devtty.c +++ b/Kernel/platform-cromemco/devtty.c @@ -20,6 +20,20 @@ static uint8_t ttybase[NUM_DEV_TTY+1] = { 0, 0, 32, 80 }; +tcflag_t uart_mask[4] = { + _ISYS, + _OSYS, + CBAUD|CSTOPB|_CSYS, + _LSYS, +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + uart_mask, + uart_mask, + uart_mask +}; + static uint8_t ttypoll; /* Write to system console */ @@ -109,9 +123,6 @@ void tty_setup(uint8_t minor, uint8_t flags) out(r + 2, 0x8); else out(r + 2, 0x18); - t->c_cflag |= CS8; - t->c_cflag &= ~PARENB; - /* Ok we could do sw parity .. */ } /* For the moment */ -- 2.34.1