summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-01-31 01:18:34 +0000
committerimp <imp@FreeBSD.org>2014-01-31 01:18:34 +0000
commitf04b60e2d33f32ff72d038a8439ba0504c09b872 (patch)
tree1e8ddb1a345d21fbf6e46d2826e9282c80879a02 /sys/arm/at91/at91.c
parent7957d0e660e69bd62f1485b7360eba22cd778ab6 (diff)
downloadFreeBSD-src-f04b60e2d33f32ff72d038a8439ba0504c09b872.zip
FreeBSD-src-f04b60e2d33f32ff72d038a8439ba0504c09b872.tar.gz
When mapping an address, the bsh needs the same offset we do for other
things.
Diffstat (limited to 'sys/arm/at91/at91.c')
-rw-r--r--sys/arm/at91/at91.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/at91/at91.c b/sys/arm/at91/at91.c
index 0ad4888..316027c 100644
--- a/sys/arm/at91/at91.c
+++ b/sys/arm/at91/at91.c
@@ -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);
}
OpenPOWER on IntegriCloud