From 22aeecfa85578c2d22b4df9d97190e479ad979e6 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 2 Oct 2018 12:45:31 +0100 Subject: [PATCH] sam: update for termios masks --- Kernel/platform-sam/devtty.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Kernel/platform-sam/devtty.c b/Kernel/platform-sam/devtty.c index 9466faad..15580a72 100644 --- a/Kernel/platform-sam/devtty.c +++ b/Kernel/platform-sam/devtty.c @@ -16,6 +16,19 @@ 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 +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + console_mask /* For now */ +}; + /* Write to system console */ void kputchar(char c) { -- 2.34.1