From 51c7c42e36e13a506d9818a35f851517ca4ebb20 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 28 Nov 2014 22:10:33 +0000 Subject: [PATCH] start: put the termios init data into const That way we've got more chance of discarding it --- Kernel/start.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/start.c b/Kernel/start.c index f82c7620..de20291e 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -10,7 +10,7 @@ * make the entire of this disappear after the initial _execve */ -static struct termios ttydflt = { +static const struct termios ttydflt = { BRKINT | ICRNL, OPOST | ONLCR, CS8 | B9600 | CREAD | HUPCL, @@ -26,6 +26,7 @@ void tty_init(void) { int i; for(i = 1; i <= NUM_DEV_TTY; i++) { memcpy(&t->termios, &ttydflt, sizeof(struct termios)); + kprintf("%x: %x\n", &t->termios, t->termios.c_lflag); t++; } } -- 2.34.1