Implement sa11x0_bs_unmap.

Submitted by:	kevlo
This commit is contained in:
Olivier Houchard 2006-05-18 22:03:47 +00:00
parent b012edd4ed
commit ac895519de

View File

@ -188,9 +188,21 @@ sa11x0_bs_unmap(t, size)
void *t;
bus_size_t size;
{
/*
* Temporary implementation
*/
vm_offset_t va, endva;
if (pmap_devmap_find_va((vm_offset_t)t, size) != NULL) {
/* Device was statically mapped; nothing to do. */
return;
}
va = trunc_page((vm_offset_t)t);
endva = round_page((vm_offset_t)t + size);
while (va < endva) {
pmap_kremove(va);
va += PAGE_SIZE;
}
kmem_free(kernel_map, va, endva - va);
}
void