From d975c69b977b406db96e99aee4768f06ad16b01c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 3 Oct 2018 13:11:01 +0100 Subject: [PATCH] socz80: add tty masking Needs updating to handling the improved bitstream with serial config --- Kernel/platform-socz80/devtty.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Kernel/platform-socz80/devtty.c b/Kernel/platform-socz80/devtty.c index c1e6f2f4..992f2399 100644 --- a/Kernel/platform-socz80/devtty.c +++ b/Kernel/platform-socz80/devtty.c @@ -15,6 +15,20 @@ struct s_queue ttyinq[NUM_DEV_TTY+1] = { /* ttyinq[0] is never used */ { tbuf2, tbuf2, tbuf2, TTYSIZ, 0, TTYSIZ/2 } }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +/* FIXME: will do for now though */ +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + console_mask +}; + /* console helper */ void kputchar(char c) { -- 2.34.1