From: Alan Cox Date: Tue, 2 Oct 2018 13:01:40 +0000 (+0100) Subject: 6502/65c816: update to new termios masking X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2602e9525f7fe0d94d1e6178a4be3ef93246aa81;p=FUZIX.git 6502/65c816: update to new termios masking --- 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;