Module Name: src
Committed By: macallan
Date: Tue Jun 4 13:42:37 UTC 2013
Modified Files:
src/sys/arch/sparc/dev: cgfourteen.c
Log Message:
actually map the whole SX IO space instead of just the first page over and
over again (doh)
To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/arch/sparc/dev/cgfourteen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/dev/cgfourteen.c
diff -u src/sys/arch/sparc/dev/cgfourteen.c:1.73 src/sys/arch/sparc/dev/cgfourteen.c:1.74
--- src/sys/arch/sparc/dev/cgfourteen.c:1.73 Wed May 29 22:26:39 2013
+++ src/sys/arch/sparc/dev/cgfourteen.c Tue Jun 4 13:42:37 2013
@@ -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 @@ cgfourteenmmap(dev_t dev, off_t off, int
} 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;