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/dev/syscons/syscons.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/dev/syscons/syscons.c')
-rw-r--r-- | sys/dev/syscons/syscons.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 503bed9..b479451 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -222,11 +222,10 @@ static cn_init_t sccninit; static cn_getc_t sccngetc; static cn_checkc_t sccncheckc; static cn_putc_t sccnputc; -static cn_dbctl_t sccndbctl; static cn_term_t sccnterm; CONS_DRIVER(sc, sccnprobe, sccninit, sccnterm, sccngetc, sccncheckc, sccnputc, - sccndbctl); + NULL); static d_open_t scopen; static d_close_t scclose; @@ -1511,37 +1510,6 @@ sccncheckc(struct consdev *cd) return sccngetch(SCGETC_NONBLOCK); } -static void -sccndbctl(struct consdev *cd, int on) -{ - /* assert(sc_console_unit >= 0) */ - /* try to switch to the kernel console screen */ - if (on && debugger == 0) { - /* - * TRY to make sure the screen saver is stopped, - * and the screen is updated before switching to - * the vty0. - */ - scrn_timer(NULL); - if (!cold - && sc_console->sc->cur_scp->smode.mode == VT_AUTO - && sc_console->smode.mode == VT_AUTO) { - sc_console->sc->cur_scp->status |= MOUSE_HIDDEN; - ++debugger; /* XXX */ -#ifdef DDB - /* unlock vty switching */ - sc_console->sc->flags &= ~SC_SCRN_VTYLOCK; -#endif - sc_switch_scr(sc_console->sc, sc_console->index); - --debugger; /* XXX */ - } - } - if (on) - ++debugger; - else - --debugger; -} - static int sccngetch(int flags) { |