]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Probe all consoles, not just the first. It doesn't make a lot of
authorPeter Wemm <peter@FreeBSD.org>
Sun, 11 Oct 1998 10:19:11 +0000 (10:19 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Sun, 11 Oct 1998 10:19:11 +0000 (10:19 +0000)
commit6e9108b6ac3e923a3f495ca1d11e7d4a04ef8a1b
tree7d8571a78478749a9b783aaad060f1af0c947271
parent450caa170f279261cc23dc1cfd27799fd22dee4c
Probe all consoles, not just the first.  It doesn't make a lot of
difference, but might later on when we implement some sort of multi-head
console mode.  Select a console after probing them all.
Don't strdup a potentially NULL return from getenv().
If we don't select an active console, choose the first regardless.
Call the console init function, at startup time and on a manual change.
The env_setenv() function needs EV_VOLATILE because it's pointing to
data that isn't malloc'ed and will cause a fault if it's freed later.
sys/boot/common/console.c