Module Name:    src
Committed By:   macallan
Date:           Thu Aug 20 02:29:17 UTC 2009

Modified Files:
        src/sys/dev/sbus: agten.c p9100.c tcx.c

Log Message:
call vcons_replay_msgbuf() if we're the console


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/sbus/agten.c
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/sbus/p9100.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/sbus/tcx.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/sbus/agten.c
diff -u src/sys/dev/sbus/agten.c:1.19 src/sys/dev/sbus/agten.c:1.20
--- src/sys/dev/sbus/agten.c:1.19	Tue May 26 03:32:51 2009
+++ src/sys/dev/sbus/agten.c	Thu Aug 20 02:29:16 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: agten.c,v 1.19 2009/05/26 03:32:51 macallan Exp $ */
+/*	$NetBSD: agten.c,v 1.20 2009/08/20 02:29:16 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.19 2009/05/26 03:32:51 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.20 2009/08/20 02:29:16 macallan Exp $");
 
 /*
  * a driver for the Fujitsu AG-10e SBus framebuffer
@@ -314,6 +314,7 @@
 		i128_rectfill(sc->sc_bustag, sc->sc_i128_regh, 0, 0,
 		    sc->sc_width, sc->sc_height,
 		    ri->ri_devcmap[(defattr >> 16) & 0xff]);
+		vcons_replay_msgbuf(&sc->sc_console_screen);
 	} else {
 		/*
 		 * since we're not the console we can postpone the rest

Index: src/sys/dev/sbus/p9100.c
diff -u src/sys/dev/sbus/p9100.c:1.46 src/sys/dev/sbus/p9100.c:1.47
--- src/sys/dev/sbus/p9100.c:1.46	Wed Jun  3 16:25:22 2009
+++ src/sys/dev/sbus/p9100.c	Thu Aug 20 02:29:16 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: p9100.c,v 1.46 2009/06/03 16:25:22 macallan Exp $ */
+/*	$NetBSD: p9100.c,v 1.47 2009/08/20 02:29:16 macallan Exp $ */
 
 /*-
  * Copyright (c) 1998, 2005, 2006 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: p9100.c,v 1.46 2009/06/03 16:25:22 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: p9100.c,v 1.47 2009/08/20 02:29:16 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -460,6 +460,7 @@
 
 	if(isconsole) {
 		wsdisplay_cnattach(&p9100_defscreendesc, ri, 0, 0, defattr);
+		vcons_replay_msgbuf(&p9100_console_screen);
 	}
 
 	aa.console = isconsole;
@@ -1083,7 +1084,7 @@
 
 	int fg, bg, uc, i;
 	uint8_t *data;
-	int x, y, wi,he;
+	int x, y, wi, he;
 
 	wi = ri->ri_font->fontwidth;
 	he = ri->ri_font->fontheight;

Index: src/sys/dev/sbus/tcx.c
diff -u src/sys/dev/sbus/tcx.c:1.38 src/sys/dev/sbus/tcx.c:1.39
--- src/sys/dev/sbus/tcx.c:1.38	Thu Aug 20 02:01:55 2009
+++ src/sys/dev/sbus/tcx.c	Thu Aug 20 02:29:16 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcx.c,v 1.38 2009/08/20 02:01:55 macallan Exp $ */
+/*	$NetBSD: tcx.c,v 1.39 2009/08/20 02:29:16 macallan Exp $ */
 
 /*
  *  Copyright (c) 1996, 1998, 2009 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.38 2009/08/20 02:01:55 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.39 2009/08/20 02:29:16 macallan Exp $");
 
 /*
  * define for cg8 emulation on S24 (24-bit version of tcx) for the SS5;
@@ -401,10 +401,9 @@
 
 	if(isconsole) {
 		wsdisplay_cnattach(&tcx_defscreendesc, ri, 0, 0, defattr);
+		vcons_replay_msgbuf(&tcx_console_screen);
 	}
 
-	vcons_replay_msgbuf(&tcx_console_screen);
-
 	aa.console = isconsole;
 	aa.scrdata = &tcx_screenlist;
 	aa.accessops = &tcx_accessops;

Reply via email to