summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2006-05-30 14:21:09 +0000
committerbenno <benno@FreeBSD.org>2006-05-30 14:21:09 +0000
commitb96008e41020f44883b210d0d133803ece938162 (patch)
tree0f5c09b6e5896bf8fd33f603af4baf5eeb16bb21 /sys/arm
parent6449092f5190add14cdaa9bd025e71945a69e61a (diff)
downloadFreeBSD-src-b96008e41020f44883b210d0d133803ece938162.zip
FreeBSD-src-b96008e41020f44883b210d0d133803ece938162.tar.gz
In pmap_mapdev we correctly round the address off to the nearest page
boundary, but we must also add the offset back on to the va we return.
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c
index 247511f..6c5ef60 100644
--- a/sys/arm/arm/pmap.c
+++ b/sys/arm/arm/pmap.c
@@ -4474,7 +4474,7 @@ pmap_mapdev(vm_offset_t pa, vm_size_t size)
pa += PAGE_SIZE;
}
- return ((void *)(va));
+ return ((void *)(va + offset));
}
#define BOOTSTRAP_DEBUG
OpenPOWER on IntegriCloud