Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus turns out we can map the full amount of VRAM on...



details:   https://anonhg.NetBSD.org/src/rev/7b50b24f46c6
branches:  trunk
changeset: 363395:7b50b24f46c6
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Mar 09 17:53:39 2022 +0000

description:
turns out we can map the full amount of VRAM on a 4MB board even when in
double buffer mode

thanks foo bar

diffstat:

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

diffs (27 lines):

diff -r 104871f0a877 -r 7b50b24f46c6 sys/dev/sbus/cgsix_sbus.c
--- a/sys/dev/sbus/cgsix_sbus.c Wed Mar 09 10:06:36 2022 +0000
+++ b/sys/dev/sbus/cgsix_sbus.c Wed Mar 09 17:53:39 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix_sbus.c,v 1.30 2009/09/17 16:28:12 tsutsui Exp $ */
+/*     $NetBSD: cgsix_sbus.c,v 1.31 2022/03/09 17:53:39 macallan Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.30 2009/09/17 16:28:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.31 2022/03/09 17:53:39 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -172,7 +172,7 @@
         * we need the address of the framebuffer, no matter if we're console or
         * not.
         */
-       sc->sc_ramsize = prom_getpropint(node, "fbmapped", 1024 * 1024);
+       sc->sc_ramsize = prom_getpropint(node, "vmsize", 1) * 1024 * 1024;
        if (sbus_bus_map(sa->sa_bustag,
                        sa->sa_slot,
                        sa->sa_offset + CGSIX_RAM_OFFSET,



Home | Main Index | Thread Index | Old Index