diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2013-04-27 01:57:45 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2013-04-27 01:57:45 +0000 |
commit | ac66f2c0339136fc4bcb10a5cffb348fea97f42e (patch) | |
tree | 76f18694bbbf7d040ad5341a3698ce20c2dbbc3c /sys/powerpc | |
parent | 850163e4edec1211175135224b006d29dff1ab21 (diff) | |
download | src-ac66f2c0339136fc4bcb10a5cffb348fea97f42e.tar.gz src-ac66f2c0339136fc4bcb10a5cffb348fea97f42e.zip |
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.
Notes
Notes:
svn path=/head/; revision=249965
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/wii/wii_fb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/powerpc/wii/wii_fb.c b/sys/powerpc/wii/wii_fb.c index 7f5e3ae666e9..c32ab769eff6 100644 --- a/sys/powerpc/wii/wii_fb.c +++ b/sys/powerpc/wii/wii_fb.c @@ -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; |