public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd2589
)
start: put the termios init data into const
author
Alan Cox
<alan@etchedpixels.co.uk>
Fri, 28 Nov 2014 22:10:33 +0000
(22:10 +0000)
committer
Alan Cox
<alan@etchedpixels.co.uk>
Fri, 28 Nov 2014 22:10:33 +0000
(22:10 +0000)
That way we've got more chance of discarding it
Kernel/start.c
patch
|
blob
|
history
diff --git
a/Kernel/start.c
b/Kernel/start.c
index
f82c762
..
de20291
100644
(file)
--- 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++;
}
}