diff options
author | benno <benno@FreeBSD.org> | 2006-05-30 14:21:09 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2006-05-30 14:21:09 +0000 |
commit | b96008e41020f44883b210d0d133803ece938162 (patch) | |
tree | 0f5c09b6e5896bf8fd33f603af4baf5eeb16bb21 | |
parent | 6449092f5190add14cdaa9bd025e71945a69e61a (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/arm/arm/pmap.c | 2 |
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 |