mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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.
This commit is contained in:
parent
850163e4ed
commit
ac66f2c033
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue