Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/dev/wsfb Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/e01c6ebf30cf
branches:  netbsd-8
changeset: 930846:e01c6ebf30cf
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Apr 15 14:44:52 2020 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #1532):

        sys/dev/wsfb/genfb.c: revision 1.72

  Get genfb's address offset correctly when the value >= 4G. OK's by jmcneill.

  Tested on Intel BXNUC10I3FNK (Comet Lake U).

diffstat:

 sys/dev/wsfb/genfb.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r f185b9ac192f -r e01c6ebf30cf sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c      Wed Apr 15 14:27:54 2020 +0000
+++ b/sys/dev/wsfb/genfb.c      Wed Apr 15 14:44:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfb.c,v 1.61 2017/06/01 02:45:12 chs Exp $ */
+/*     $NetBSD: genfb.c,v 1.61.2.1 2020/04/15 14:44:52 martin Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.61 2017/06/01 02:45:12 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.61.2.1 2020/04/15 14:44:52 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -95,7 +95,7 @@
 {
        prop_dictionary_t dict;
        uint64_t cmap_cb, pmf_cb, mode_cb, bl_cb, br_cb, fbaddr;
-       uint32_t fboffset;
+       uint64_t fboffset;
        bool console;
 
        dict = device_properties(sc->sc_dev);
@@ -117,13 +117,12 @@
                return;
        }
 
-       /* XXX should be a 64bit value */
-       if (!prop_dictionary_get_uint32(dict, "address", &fboffset)) {
+       if (!prop_dictionary_get_uint64(dict, "address", &fboffset)) {
                GPRINTF("no address property\n");
                return;
        }
 
-       sc->sc_fboffset = fboffset;
+       sc->sc_fboffset = (bus_addr_t)fboffset;
 
        sc->sc_fbaddr = NULL;
        if (prop_dictionary_get_uint64(dict, "virtual_address", &fbaddr)) {



Home | Main Index | Thread Index | Old Index