diff options
author | phk <phk@FreeBSD.org> | 2006-05-26 10:24:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-05-26 10:24:00 +0000 |
commit | 393a50156ba1eea8a287ceb6ac9fd85d1ee04258 (patch) | |
tree | a28f98eb35708ccb4f77caec9693d0368df444f9 /sys/kern/tty_cons.c | |
parent | a85f16779ec1aa7dc6be7947133855ca6c7a22f1 (diff) | |
download | FreeBSD-src-393a50156ba1eea8a287ceb6ac9fd85d1ee04258.zip FreeBSD-src-393a50156ba1eea8a287ceb6ac9fd85d1ee04258.tar.gz |
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!"
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r-- | sys/kern/tty_cons.c | 19 |
1 files changed, 0 insertions, 19 deletions
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, ""); |