svn commit: r261304 - head/sys/arm/at91
Warner Losh
imp at FreeBSD.org
Fri Jan 31 01:18:34 UTC 2014
Author: imp
Date: Fri Jan 31 01:18:34 2014
New Revision: 261304
URL: http://svnweb.freebsd.org/changeset/base/261304
Log:
When mapping an address, the bsh needs the same offset we do for other
things.
Modified:
head/sys/arm/at91/at91.c
Modified: head/sys/arm/at91/at91.c
==============================================================================
--- head/sys/arm/at91/at91.c Thu Jan 30 22:26:51 2014 (r261303)
+++ head/sys/arm/at91/at91.c Fri Jan 31 01:18:34 2014 (r261304)
@@ -74,7 +74,7 @@ at91_bs_map(void *t, bus_addr_t bpa, bus
}
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);
}
More information about the svn-src-all
mailing list