diff options
| author | macallan <macallan@NetBSD.org> | 2009-08-20 02:49:30 +0000 |
|---|---|---|
| committer | macallan <macallan@NetBSD.org> | 2009-08-20 02:49:30 +0000 |
| commit | 45727432a79b2995706b2491771f1b4f4901bc70 (patch) | |
| tree | 75821771973d6732340523c8b58230b6285ef096 /sys/dev | |
| parent | eccd210ff37f0ea316113bca35de4e60bac751de (diff) | |
call vcons_replay_msgbuf() when appropriate
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sun/cgsix.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/sun/cgsix.c b/sys/dev/sun/cgsix.c index 8dd2481913e..7e41ab56c15 100644 --- a/sys/dev/sun/cgsix.c +++ b/sys/dev/sun/cgsix.c @@ -1,4 +1,4 @@ -/* $NetBSD: cgsix.c,v 1.44 2009/02/20 22:55:26 martin Exp $ */ +/* $NetBSD: cgsix.c,v 1.45 2009/08/20 02:49:30 macallan Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -78,7 +78,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.44 2009/02/20 22:55:26 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.45 2009/08/20 02:49:30 macallan Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -615,6 +615,9 @@ cg6attach(struct cgsix_softc *sc, const char *name, int isconsole) vcons_init(&sc->vd, sc, &cgsix_defaultscreen, &cgsix_accessops); sc->vd.init_screen = cgsix_init_screen; + cg6_setup_palette(sc); + cgsix_clearscreen(sc); + if(isconsole) { /* we mess with cg6_console_screen only once */ vcons_init_screen(&sc->vd, &cg6_console_screen, 1, @@ -627,7 +630,8 @@ cg6attach(struct cgsix_softc *sc, const char *name, int isconsole) cgsix_defaultscreen.ncols = ri->ri_cols; SCREEN_VISIBLE(&cg6_console_screen); sc->vd.active = &cg6_console_screen; - wsdisplay_cnattach(&cgsix_defaultscreen, ri, 0, 0, defattr); + wsdisplay_cnattach(&cgsix_defaultscreen, ri, 0, 0, defattr); + vcons_replay_msgbuf(&cg6_console_screen); } else { /* * we're not the console so we just clear the screen and don't @@ -648,9 +652,6 @@ cg6attach(struct cgsix_softc *sc, const char *name, int isconsole) cgsix_defaultscreen.ncols = ri->ri_cols; } } - - cg6_setup_palette(sc); - cgsix_clearscreen(sc); aa.scrdata = &cgsix_screenlist; aa.console = isconsole; |
