diff options
author | phk <phk@FreeBSD.org> | 2003-03-09 20:42:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-09 20:42:49 +0000 |
commit | ef078ef6a1ca0a6294f1d0ae5177a3f4b5fd8aac (patch) | |
tree | 8c41790703f2ce96df6a1018d264d586939673a9 /sys/kern | |
parent | 3a50d97c5c165f2ee59b643bb0e70f8646bbdaa6 (diff) | |
download | FreeBSD-src-ef078ef6a1ca0a6294f1d0ae5177a3f4b5fd8aac.zip FreeBSD-src-ef078ef6a1ca0a6294f1d0ae5177a3f4b5fd8aac.tar.gz |
Don't call make_dev() before we are ready for it.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_cons.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 89bed41..47fffa3 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -175,7 +175,6 @@ cninit(void) * Make the best console the preferred console. */ cnselect(best_cn); - make_dev(&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console"); } void @@ -587,3 +586,12 @@ cndbctl(int on) if (on) refcount++; } + +static void +cn_drvinit(void *unused) +{ + + make_dev(&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console"); +} + +SYSINIT(cndev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, cn_drvinit, NULL) |