Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/dev no need to set RI_CLEAR - we do our own...



details:   https://anonhg.NetBSD.org/src/rev/0302143890ab
branches:  trunk
changeset: 810800:0302143890ab
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Sep 23 20:09:45 2015 +0000

description:
no need to set RI_CLEAR - we do our own clearing and rasops assumes a linear
framebuffer anyway. Now we can get away with leaving ri_bits at NULL where it
belongs on this hardware.

diffstat:

 sys/arch/sgimips/dev/crmfb.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 204278a33893 -r 0302143890ab sys/arch/sgimips/dev/crmfb.c
--- a/sys/arch/sgimips/dev/crmfb.c      Wed Sep 23 12:14:51 2015 +0000
+++ b/sys/arch/sgimips/dev/crmfb.c      Wed Sep 23 20:09:45 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crmfb.c,v 1.40 2015/02/18 16:47:58 macallan Exp $ */
+/* $NetBSD: crmfb.c,v 1.41 2015/09/23 20:09:45 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crmfb.c,v 1.40 2015/02/18 16:47:58 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crmfb.c,v 1.41 2015/09/23 20:09:45 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -626,10 +626,7 @@
                break;
        }
 
-       ri->ri_bits = KERNADDR(sc->sc_dma);
-
-       if (existing)
-               ri->ri_flg |= RI_CLEAR;
+       ri->ri_bits = NULL;
 
        rasops_init(ri, 0, 0);
        ri->ri_caps = WSSCREEN_WSCOLORS;



Home | Main Index | Thread Index | Old Index