From 2602e9525f7fe0d94d1e6178a4be3ef93246aa81 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 2 Oct 2018 14:01:40 +0100 Subject: [PATCH] 6502/65c816: update to new termios masking --- Kernel/platform-v65/devtty.c | 12 +++++++++++- Kernel/platform-v65c816-big/devtty.c | 12 ++++++++++++ Kernel/platform-v65c816/devtty.c | 13 +++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-v65/devtty.c b/Kernel/platform-v65/devtty.c index 04f0fd6f..e995cabf 100644 --- a/Kernel/platform-v65/devtty.c +++ b/Kernel/platform-v65/devtty.c @@ -19,7 +19,17 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ PTY_QUEUES }; -/* tty1 is the screen tty2 is the serial port */ +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(uint8_t c) diff --git a/Kernel/platform-v65c816-big/devtty.c b/Kernel/platform-v65c816-big/devtty.c index 6970afae..42389280 100644 --- a/Kernel/platform-v65c816-big/devtty.c +++ b/Kernel/platform-v65c816-big/devtty.c @@ -17,6 +17,18 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ PTY_QUEUES }; +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(uint8_t c) { diff --git a/Kernel/platform-v65c816/devtty.c b/Kernel/platform-v65c816/devtty.c index a0fbe93b..eccf95f7 100644 --- a/Kernel/platform-v65c816/devtty.c +++ b/Kernel/platform-v65c816/devtty.c @@ -26,6 +26,19 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ PTY_QUEUES }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + console_mask +}; + /* VT support logic */ uint16_t fb_off; -- 2.34.1