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/0570aa38787b
branches:  trunk
changeset: 997578:0570aa38787b
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 e029fe7e5c01 -r 0570aa38787b 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