In pmap_unmapdev(), remember the size, and use that as an argument to
kva_free(), or we'd end up always passing it a size of 0, and for some strange reason it doesn't seem to like it.
This commit is contained in:
parent
c5f2a20e13
commit
e5926a9f69
@ -240,6 +240,7 @@ void
|
||||
pmap_unmapdev(vm_offset_t va, vm_size_t size)
|
||||
{
|
||||
vm_offset_t tmpva, offset;
|
||||
vm_size_t origsize = size;
|
||||
|
||||
offset = va & PAGE_MASK;
|
||||
va = trunc_page(va);
|
||||
@ -251,6 +252,6 @@ pmap_unmapdev(vm_offset_t va, vm_size_t size)
|
||||
tmpva += PAGE_SIZE;
|
||||
}
|
||||
|
||||
kva_free(va, size);
|
||||
kva_free(va, origsize);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user