aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2006-05-26 10:24:00 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2006-05-26 10:24:00 +0000
commit16b1613a31827fd4ff67d3b45341f335843f88ee (patch)
treea28f98eb35708ccb4f77caec9693d0368df444f9 /sys/dev/syscons
parent9806934e47c514ca7cb7c4b9084d8429bb1d24d6 (diff)
Notes
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/syscons.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 503bed9d600b3..b479451db75b9 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)
{