Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus In zx_cursor_color(), don't throw away the seco...



details:   https://anonhg.NetBSD.org/src/rev/6cb283306874
branches:  trunk
changeset: 449635:6cb283306874
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Mar 13 22:30:01 2019 +0000

description:
In zx_cursor_color(), don't throw away the second half of the color
map data.

diffstat:

 sys/dev/sbus/zx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8c444e1fca02 -r 6cb283306874 sys/dev/sbus/zx.c
--- a/sys/dev/sbus/zx.c Wed Mar 13 22:12:46 2019 +0000
+++ b/sys/dev/sbus/zx.c Wed Mar 13 22:30:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zx.c,v 1.43 2019/03/13 22:12:46 thorpej Exp $  */
+/*     $NetBSD: zx.c,v 1.44 2019/03/13 22:30:01 thorpej Exp $  */
 
 /*
  *  Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.43 2019/03/13 22:12:46 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.44 2019/03/13 22:30:01 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -771,7 +771,7 @@
 
        tmp = sc->sc_curcmap[1] | (sc->sc_curcmap[3] << 8) |
            (sc->sc_curcmap[5] << 16);
-       bus_space_write_4(sc->sc_bt, sc->sc_bhzcu, zcu_data, sc->sc_curcmap[1]);
+       bus_space_write_4(sc->sc_bt, sc->sc_bhzcu, zcu_data, tmp);
 
        bus_space_write_4(sc->sc_bt, sc->sc_bhzcu, zcu_misc,
            bus_space_read_4(sc->sc_bt, sc->sc_bhzcu, zcu_misc) | 0x03);



Home | Main Index | Thread Index | Old Index