When mapping an address, the bsh needs the same offset we do for other
things.
This commit is contained in:
parent
7957d0e660
commit
f04b60e2d3
@ -74,7 +74,7 @@ at91_bs_map(void *t, bus_addr_t bpa, bus_size_t size, int flags,
|
||||
}
|
||||
endpa = round_page(bpa + size);
|
||||
|
||||
*bshp = (vm_offset_t)pmap_mapdev(pa, endpa - pa);
|
||||
*bshp = (vm_offset_t)pmap_mapdev(pa, endpa - pa) + (bpa - pa);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user