diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2002-01-09 04:03:55 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2002-01-09 04:03:55 +0000 |
| commit | 47a1c9151495c236f571a8c99ca848ec848e90f4 (patch) | |
| tree | 10795e1321718ca638eeece77da2e77707aac165 /sys/dev/ofw | |
| parent | 65c382562e0d552e0dbfe1f659e73b3532c92ddc (diff) | |
Notes
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofw_console.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c index fef7d844b5e6..154f7ff4118e 100644 --- a/sys/dev/ofw/ofw_console.c +++ b/sys/dev/ofw/ofw_console.c @@ -82,6 +82,15 @@ static cn_putc_t ofw_cons_putc; CONS_DRIVER(ofw, ofw_cons_probe, ofw_cons_init, NULL, ofw_cons_getc, ofw_cons_checkc, ofw_cons_putc, NULL); +static void +cn_drvinit(void *unused) +{ + + make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "ofwcons"); +} + +SYSINIT(cndev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,cn_drvinit,NULL) + static int stdin; static int stdout; @@ -254,7 +263,6 @@ ofw_cons_probe(struct consdev *cp) cp->cn_dev = makedev(CDEV_MAJOR, 0); cp->cn_pri = CN_INTERNAL; cp->cn_tp = ofw_tp; - make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "ofwcons"); } static void |
