From ea746a5dab02c45c3d3b91c05437f1e9c51a13ac Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 6 Aug 2002 18:56:41 +0000 Subject: Remove new console devices with cnremove before initializing them in cninit. This allows a console driver to replace the existing console by calling cninit again, eg during the device probe. Otherwise the multiple console code sends output to both, which is unfortunate if they're using the same hardware. --- sys/kern/tty_cons.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/kern/tty_cons.c') diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 91713c1..40285fc 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -148,6 +148,7 @@ cninit(void) best_cn = NULL; SET_FOREACH(list, cons_set) { cn = *list; + cnremove(cn); if (cn->cn_probe == NULL) continue; cn->cn_probe(cn); -- cgit v1.1