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
rewrite the device subsystem interfaces (#48)
[lunaix-os.git]
/
lunaix-os
/
hal
/
term
/
console.c
diff --git
a/lunaix-os/hal/term/console.c
b/lunaix-os/hal/term/console.c
index 1c2a2cf83497d6fbb7521f5f551dacbd47042fac..ea479a31c7716e6356dfe2c1ec943629dc0ad7aa 100644
(file)
--- a/
lunaix-os/hal/term/console.c
+++ b/
lunaix-os/hal/term/console.c
@@
-35,7
+35,7
@@
setup_default_tty()
assert(device_addalias(NULL, dev_meta(dev), "tty"));
- if (!device_get_
capability(dev, TERMIOS_CAP
)) {
+ if (!device_get_
potens(dev, potens(TERMPORT)
)) {
FATAL("not a terminal device: %s", console_dev);
}