summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-07-15 23:11:51 +0000
committerjkim <jkim@FreeBSD.org>2010-07-15 23:11:51 +0000
commit686d769c8bdcb1f4ea1563178a0518e2d58ddf6d (patch)
tree27ec0c68103c1c4dcfb8c68fb7c2c75f3fd3ca10 /sys/isa
parentbf0075bfecb8e3b9d39b60db766f5967be908a74 (diff)
downloadFreeBSD-src-686d769c8bdcb1f4ea1563178a0518e2d58ddf6d.zip
FreeBSD-src-686d769c8bdcb1f4ea1563178a0518e2d58ddf6d.tar.gz
When we are not switching VTs, just mark all buffer to be updated.
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/syscons_isa.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/isa/syscons_isa.c b/sys/isa/syscons_isa.c
index e0dcdba..6b257ab 100644
--- a/sys/isa/syscons_isa.c
+++ b/sys/isa/syscons_isa.c
@@ -141,10 +141,16 @@ scresume(device_t dev)
sc = &main_softc;
+ if (sc->cur_scp == NULL)
+ return (0);
+
sc->suspend_in_progress--;
- if (sc->suspend_in_progress == 0)
+ if (sc->suspend_in_progress == 0) {
if (!sc_no_suspend_vtswitch && sc_cur_scr != 0)
sc_switch_scr(sc, sc_cur_scr);
+ else
+ mark_all(sc->cur_scp);
+ }
return (0);
}
OpenPOWER on IntegriCloud