Module Name: src
Committed By: macallan
Date: Thu Aug 20 02:49:30 UTC 2009
Modified Files:
src/sys/dev/sun: cgsix.c
Log Message:
call vcons_replay_msgbuf() when appropriate
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/sun/cgsix.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/sun/cgsix.c
diff -u src/sys/dev/sun/cgsix.c:1.44 src/sys/dev/sun/cgsix.c:1.45
--- src/sys/dev/sun/cgsix.c:1.44 Fri Feb 20 22:55:26 2009
+++ src/sys/dev/sun/cgsix.c Thu Aug 20 02:49:30 2009
@@ -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 @@
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 @@
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 @@
cgsix_defaultscreen.ncols = ri->ri_cols;
}
}
-
- cg6_setup_palette(sc);
- cgsix_clearscreen(sc);
aa.scrdata = &cgsix_screenlist;
aa.console = isconsole;