Date: Sat, 27 Apr 2013 01:57:46 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249965 - head/sys/powerpc/wii Message-ID: <201304270157.r3R1vkHQ052596@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Sat Apr 27 01:57:45 2013 New Revision: 249965 URL: http://svnweb.freebsd.org/changeset/base/249965 Log: Fix the frambuffer issues by calling pmap_mapdev() in the attach routine. This will make the framebuffer region uncacheable and it will create a proper KVA -> RAM mapping. Modified: head/sys/powerpc/wii/wii_fb.c Modified: head/sys/powerpc/wii/wii_fb.c ============================================================================== --- head/sys/powerpc/wii/wii_fb.c Sat Apr 27 01:48:09 2013 (r249964) +++ head/sys/powerpc/wii/wii_fb.c Sat Apr 27 01:57:45 2013 (r249965) @@ -514,8 +514,12 @@ wiifb_configure(int flags) int progressive; sc = &wiifb_softc; - if (sc->sc_initialized) + if (sc->sc_initialized) { + /* XXX We should instead use bus_space */ + sc->sc_fb_addr = (intptr_t)pmap_mapdev(WIIFB_FB_ADDR, WIIFB_FB_LEN); + sc->sc_reg_addr = (intptr_t)pmap_mapdev(WIIFB_REG_ADDR, WIIFB_REG_LEN); return 0; + } sc->sc_console = 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304270157.r3R1vkHQ052596>