diff options
| author | Peter Grehan <grehan@FreeBSD.org> | 2004-07-08 06:06:56 +0000 |
|---|---|---|
| committer | Peter Grehan <grehan@FreeBSD.org> | 2004-07-08 06:06:56 +0000 |
| commit | ff6e6584fcfa78dbe3433786714b1ed1ec85c0d5 (patch) | |
| tree | d792e31cba906bbcc99a5aa841dbeeae557c031c /sys | |
| parent | 4bb04ec4ebddc1419a691760b559adf7f2ae28ba (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/boot/ofw/libofw/ofw_copy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_copy.c b/sys/boot/ofw/libofw/ofw_copy.c index 78f3cee565250..ba8c91f700ccf 100644 --- a/sys/boot/ofw/libofw/ofw_copy.c +++ b/sys/boot/ofw/libofw/ofw_copy.c @@ -47,9 +47,11 @@ ofw_copyin(const void *src, vm_offset_t dest, const size_t len) { void *destp, *addr; size_t dlen; + size_t resid; destp = (void *)(dest & ~PAGE_MASK); - dlen = roundup(len, PAGE_SIZE); + resid = dest & PAGE_MASK; + dlen = roundup(len + resid, PAGE_SIZE); if (OF_call_method("claim", memory, 3, 1, destp, dlen, 0, &addr) == -1) { |
