Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/explora/dev Set RI_NO_AUTO in ri_flg if fb_i...



details:   https://anonhg.NetBSD.org/src/rev/82e84079218d
branches:  trunk
changeset: 754897:82e84079218d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 15 07:38:24 2010 +0000

description:
Set RI_NO_AUTO in ri_flg if fb_init() is invoked from cnattach.
Tested on Explora451.

diffstat:

 sys/arch/evbppc/explora/dev/fb_elb.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r dd87f2cbbc84 -r 82e84079218d sys/arch/evbppc/explora/dev/fb_elb.c
--- a/sys/arch/evbppc/explora/dev/fb_elb.c      Sat May 15 07:01:37 2010 +0000
+++ b/sys/arch/evbppc/explora/dev/fb_elb.c      Sat May 15 07:38:24 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb_elb.c,v 1.9 2008/04/28 20:23:17 martin Exp $        */
+/*     $NetBSD: fb_elb.c,v 1.10 2010/05/15 07:38:24 tsutsui Exp $      */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fb_elb.c,v 1.9 2008/04/28 20:23:17 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb_elb.c,v 1.10 2010/05/15 07:38:24 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -176,6 +176,8 @@
                ri->ri_stride = ri->ri_width;
                ri->ri_bits = fb->fb_vram;
                ri->ri_flg = RI_CENTER;
+               if (ri == &console_dev.fb_ri)
+                       ri->ri_flg |= RI_NO_AUTO;
 
                rasops_init(ri, 500, 500);
        } else {



Home | Main Index | Thread Index | Old Index