From: Alan Cox Date: Tue, 2 Oct 2018 13:02:29 +0000 (+0100) Subject: 68000: update to new tty masking X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0f6ac19c39fa75894413b0796eea8cff0c6bbcd0;p=FUZIX.git 68000: update to new tty masking --- diff --git a/Kernel/platform-v68-banked/devtty.c b/Kernel/platform-v68-banked/devtty.c index b872727a..b906411f 100644 --- a/Kernel/platform-v68-banked/devtty.c +++ b/Kernel/platform-v68-banked/devtty.c @@ -16,6 +16,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 +}; + /* Output for the system console (kprintf etc) */ void kputchar(char c) { diff --git a/Kernel/platform-v68-softmmu/devtty.c b/Kernel/platform-v68-softmmu/devtty.c index b872727a..b906411f 100644 --- a/Kernel/platform-v68-softmmu/devtty.c +++ b/Kernel/platform-v68-softmmu/devtty.c @@ -16,6 +16,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 +}; + /* Output for the system console (kprintf etc) */ void kputchar(char c) { diff --git a/Kernel/platform-v68/devtty.c b/Kernel/platform-v68/devtty.c index b872727a..b906411f 100644 --- a/Kernel/platform-v68/devtty.c +++ b/Kernel/platform-v68/devtty.c @@ -16,6 +16,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 +}; + /* Output for the system console (kprintf etc) */ void kputchar(char c) {