From cd06ee971cc6d0efc33d769f914b42f2b2f153aa Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 2 Oct 2018 12:46:17 +0100 Subject: [PATCH] ubee: update for termios masks --- Kernel/platform-ubee/devtty.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Kernel/platform-ubee/devtty.c b/Kernel/platform-ubee/devtty.c index 2ee600a4..2263a68d 100644 --- a/Kernel/platform-ubee/devtty.c +++ b/Kernel/platform-ubee/devtty.c @@ -13,6 +13,8 @@ * actual UART although there are interrupting on the edges. We don't * support those for now. Some machines had add in Z8530 based * interfaces at 0x68/0x69: we need to look at those some day. + * + * FIXME: need to look at multi-console support */ #include @@ -37,6 +39,18 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ {tbuf1, tbuf1, tbuf1, TTYSIZ, 0, TTYSIZ / 2}, }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask +}; + /* Write to system console */ void kputchar(char c) { -- 2.34.1