Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev actually map the whole SX IO space instea...



details:   https://anonhg.NetBSD.org/src/rev/1e9fbe216648
branches:  trunk
changeset: 787150:1e9fbe216648
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Jun 04 13:42:37 2013 +0000

description:
actually map the whole SX IO space instead of just the first page over and
over again (doh)

diffstat:

 sys/arch/sparc/dev/cgfourteen.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 16911b5b4ccb -r 1e9fbe216648 sys/arch/sparc/dev/cgfourteen.c
--- a/sys/arch/sparc/dev/cgfourteen.c   Tue Jun 04 12:11:12 2013 +0000
+++ b/sys/arch/sparc/dev/cgfourteen.c   Tue Jun 04 13:42:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgfourteen.c,v 1.73 2013/05/29 22:26:39 macallan Exp $ */
+/*     $NetBSD: cgfourteen.c,v 1.74 2013/06/04 13:42:37 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -564,7 +564,8 @@
        } else if (off >= CG14_SXIO_VOFF &&
                   off < (CG14_SXIO_VOFF + 0x03ffffff)) {
                return (bus_space_mmap(sc->sc_sx->sc_tag, 0x800000000LL,
-                       sc->sc_fb_paddr, prot, BUS_SPACE_MAP_LINEAR));
+                       sc->sc_fb_paddr + (off - CG14_SXIO_VOFF),
+                       prot, BUS_SPACE_MAP_LINEAR));
 #endif
        } else
                return -1;



Home | Main Index | Thread Index | Old Index