git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: fstat now handle symbolic link
[lunaix-os.git]
/
lunaix-os
/
kernel
/
tty
/
lxconsole.c
diff --git
a/lunaix-os/kernel/tty/lxconsole.c
b/lunaix-os/kernel/tty/lxconsole.c
index 46f4dd253ce00fbf9499e6e07f6947b5ca5008e6..17dddfd1113f3e95a3e5ecb1eb0b5d1efc107572 100644
(file)
--- a/
lunaix-os/kernel/tty/lxconsole.c
+++ b/
lunaix-os/kernel/tty/lxconsole.c
@@
-343,7
+343,8
@@
console_start_flushing()
static int
lxconsole_spawn_ttydev(struct device_def* devdef)
{
static int
lxconsole_spawn_ttydev(struct device_def* devdef)
{
- struct device* tty_dev = device_addseq(NULL, &lx_console, "tty");
+ struct device* tty_dev =
+ device_addseq(NULL, &devdef->class, &lx_console, "tty");
tty_dev->ops.write = __tty_write;
tty_dev->ops.write_page = __tty_write_pg;
tty_dev->ops.read = __tty_read;
tty_dev->ops.write = __tty_write;
tty_dev->ops.write_page = __tty_write_pg;
tty_dev->ops.read = __tty_read;