When mapping an address, the bsh needs the same offset we do for other

things.
This commit is contained in:
imp 2014-01-31 01:18:34 +00:00
parent 7957d0e660
commit f04b60e2d3

View File

@ -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);
}