Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/dev/wscons Pull up revision 1.43 (requested by ad):



details:   https://anonhg.NetBSD.org/src/rev/d2486bdb5541
branches:  netbsd-1-5
changeset: 490302:d2486bdb5541
user:      he <he%NetBSD.org@localhost>
date:      Wed Dec 13 22:10:23 2000 +0000

description:
Pull up revision 1.43 (requested by ad):
  Make sure to switch consoles synchronously.

diffstat:

 sys/dev/wscons/wsdisplay.c |  18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r b8745eae30b7 -r d2486bdb5541 sys/dev/wscons/wsdisplay.c
--- a/sys/dev/wscons/wsdisplay.c        Wed Dec 13 21:24:57 2000 +0000
+++ b/sys/dev/wscons/wsdisplay.c        Wed Dec 13 22:10:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */
+/* $NetBSD: wsdisplay.c,v 1.37.4.2 2000/12/13 22:10:23 he Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.37.4.2 2000/12/13 22:10:23 he Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -1787,9 +1787,16 @@
 void
 wsdisplay_switchtoconsole()
 {
-       if (wsdisplay_console_device != NULL)
-               wsdisplay_switch((struct device *)wsdisplay_console_device, 
-                   0, 0);
+       struct wsdisplay_softc *sc;
+       struct wsscreen *scr;
+
+       if (wsdisplay_console_device != NULL) {
+               sc = wsdisplay_console_device;
+               scr = sc->sc_scr[0];
+               (*sc->sc_accessops->show_screen)(sc->sc_accesscookie,
+                                                scr->scr_dconf->emulcookie,
+                                                0, NULL, NULL);
+       }
 }
 
 /*
@@ -1799,5 +1806,6 @@
 wsdisplay_shutdownhook(arg)
        void *arg;
 {
+
        wsdisplay_switchtoconsole();
 }



Home | Main Index | Thread Index | Old Index