From 393a50156ba1eea8a287ceb6ac9fd85d1ee04258 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 26 May 2006 10:24:00 +0000 Subject: GC the cn_dbctl_t hook for consoles, it is unused. This used to make syscons switch to vty0 when we entered DDB but this was lost in the KDB shuffle. We may want to bring it back down the road but it should be done by calling cn_init_t/cn_term_t instead, possibly with a flag argument saying "Debugger!" --- sys/kern/tty_cons.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'sys/kern/tty_cons.c') diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index b9f9b75..3d441d7 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -635,25 +635,6 @@ cnputc(int c) } } -void -cndbctl(int on) -{ - struct cn_device *cnd; - struct consdev *cn; - static int refcount; - - if (!on) - refcount--; - if (refcount == 0) - STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { - cn = cnd->cnd_cn; - if (cn->cn_dbctl != NULL) - cn->cn_dbctl(cn, on); - } - if (on) - refcount++; -} - static int consmsgbuf_size = 8192; SYSCTL_INT(_kern, OID_AUTO, consmsgbuf_size, CTLFLAG_RW, &consmsgbuf_size, 0, ""); -- cgit v1.1