Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/newsmips Set RI_NO_AUTO in ri_flg if init functions...
details: https://anonhg.NetBSD.org/src/rev/7c4aa4e27ad4
branches: trunk
changeset: 754900:7c4aa4e27ad4
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat May 15 10:01:44 2010 +0000
description:
Set RI_NO_AUTO in ri_flg if init functions are invoked from cnattach.
Tested on NWS-3470D. xafb.c for NWS-5000 is untested.
XXX: isn't it better to have failsafe default than sprinkle RI_NO_AUTO
XXX: to avoid fatal silent hangup?
diffstat:
sys/arch/newsmips/apbus/xafb.c | 7 +++++--
sys/arch/newsmips/dev/fb.c | 7 +++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (70 lines):
diff -r 6740dd427959 -r 7c4aa4e27ad4 sys/arch/newsmips/apbus/xafb.c
--- a/sys/arch/newsmips/apbus/xafb.c Sat May 15 09:00:52 2010 +0000
+++ b/sys/arch/newsmips/apbus/xafb.c Sat May 15 10:01:44 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xafb.c,v 1.15 2008/04/09 15:40:30 tsutsui Exp $ */
+/* $NetBSD: xafb.c,v 1.16 2010/05/15 10:01:44 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -29,7 +29,7 @@
/* "xa" frame buffer driver. Currently supports 1280x1024x8 only. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xafb.c,v 1.15 2008/04/09 15:40:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xafb.c,v 1.16 2010/05/15 10:01:44 tsutsui Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -152,6 +152,7 @@
if (console) {
dc = &xafb_console_dc;
ri = &dc->dc_ri;
+ ri->ri_flg &= ~RI_NO_AUTO;
sc->sc_nscreens = 1;
} else {
dc = malloc(sizeof(struct xafb_devconfig), M_DEVBUF,
@@ -216,6 +217,8 @@
ri->ri_stride = 2048;
ri->ri_bits = (void *)dc->dc_fbbase;
ri->ri_flg = RI_FORCEMONO | RI_FULLCLEAR;
+ if (dc == &xafb_console_dc)
+ ri->ri_flg |= RI_NO_AUTO;
rasops_init(ri, 44, 100);
diff -r 6740dd427959 -r 7c4aa4e27ad4 sys/arch/newsmips/dev/fb.c
--- a/sys/arch/newsmips/dev/fb.c Sat May 15 09:00:52 2010 +0000
+++ b/sys/arch/newsmips/dev/fb.c Sat May 15 10:01:44 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.c,v 1.24 2008/04/09 15:40:30 tsutsui Exp $ */
+/* $NetBSD: fb.c,v 1.25 2010/05/15 10:01:44 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.24 2008/04/09 15:40:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.25 2010/05/15 10:01:44 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -143,6 +143,7 @@
if (console) {
dc = &fb_console_dc;
ri = &dc->dc_ri;
+ ri->ri_flg &= ~RI_NO_AUTO;
sc->sc_nscreens = 1;
} else {
dc = malloc(sizeof(struct fb_devconfig), M_DEVBUF,
@@ -201,6 +202,8 @@
ri->ri_stride = 2048 / 8;
ri->ri_bits = dc->dc_fbbase;
ri->ri_flg = RI_FULLCLEAR;
+ if (dc == &fb_console_dc)
+ ri->ri_flg |= RI_NO_AUTO;
rasops_init(ri, 24, 80);
rows = (height - 2) / ri->ri_font->fontheight;
Home |
Main Index |
Thread Index |
Old Index