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
refactor: make pci device driver loading passive, pci bus scanner will not load them...
[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 0bcb9b71213e015471405fcfee4dccffc4be1a80..fa20202807432f03c6a821dfd4960f9bb16b8ee0 100644
(file)
--- a/
lunaix-os/kernel/tty/lxconsole.c
+++ b/
lunaix-os/kernel/tty/lxconsole.c
@@
-343,7
+343,7
@@
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_a
ddseq(NULL, &lx_console, "tty"
);
+ struct device* tty_dev = device_a
llocseq(NULL, &lx_console
);
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;
@@
-353,11
+353,14
@@
lxconsole_spawn_ttydev(struct device_def* devdef)
waitq_init(&lx_reader);
input_add_listener(__lxconsole_listener);
waitq_init(&lx_reader);
input_add_listener(__lxconsole_listener);
+ device_register(tty_dev, &devdef->class, "tty");
+
return 0;
}
static struct device_def lxconsole_def = {
return 0;
}
static struct device_def lxconsole_def = {
- .class = DEVCLASS(DEVIF_NON, DEVFN_TTY, DEV_BUILTIN, 0),
+ .name = "Lunaix Virtual Console",
+ .class = DEVCLASSV(DEVIF_NON, DEVFN_TTY, DEV_BUILTIN, 12),
.init = lxconsole_spawn_ttydev
};
.init = lxconsole_spawn_ttydev
};
-EXPORT_DEVICE(lxconsole, &lxconsole_def, load_
earlystage
);
\ No newline at end of file
+EXPORT_DEVICE(lxconsole, &lxconsole_def, load_
onboot
);
\ No newline at end of file