Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/dreamcast/dev Set RI_NO_AUTO in ri_flg if pvr_getde...



details:   https://anonhg.NetBSD.org/src/rev/7f523021445d
branches:  trunk
changeset: 754894:7f523021445d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 15 06:48:22 2010 +0000

description:
Set RI_NO_AUTO in ri_flg if pvr_getdevconfig() is invoked from cninit.
Tested on gxemul.

diffstat:

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

diffs (27 lines):

diff -r 934024dec3bc -r 7f523021445d sys/arch/dreamcast/dev/pvr.c
--- a/sys/arch/dreamcast/dev/pvr.c      Sat May 15 06:39:06 2010 +0000
+++ b/sys/arch/dreamcast/dev/pvr.c      Sat May 15 06:48:22 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pvr.c,v 1.25 2008/05/26 10:31:22 nisimura Exp $        */
+/*     $NetBSD: pvr.c,v 1.26 2010/05/15 06:48:22 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.25 2008/05/26 10:31:22 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.26 2010/05/15 06:48:22 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -238,6 +238,8 @@
        pvrinit(dc);
 
        dc->rinfo.ri_flg = 0;
+       if (dc == &pvr_console_dc)
+               dc->rinfo.ri_flg |= RI_NO_AUTO;
        dc->rinfo.ri_depth = dc->dc_depth;
        dc->rinfo.ri_bits = (void *) dc->dc_videobase;
        dc->rinfo.ri_width = dc->dc_wid;



Home | Main Index | Thread Index | Old Index