From 0f6ac19c39fa75894413b0796eea8cff0c6bbcd0 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 2 Oct 2018 14:02:29 +0100 Subject: [PATCH] 68000: update to new tty masking --- Kernel/platform-v68-banked/devtty.c | 12 ++++++++++++ Kernel/platform-v68-softmmu/devtty.c | 12 ++++++++++++ Kernel/platform-v68/devtty.c | 12 ++++++++++++ 3 files changed, 36 insertions(+) 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) { -- 2.34.1