Use direct map in pmap_map().
This saves much KVA for vm_pages and you don't need to increase NKPT for large physical memory anymore. Suggested by: dfr
This commit is contained in:
parent
3c6001ec5d
commit
e14720d614
@ -812,17 +812,7 @@ pmap_kremove(vm_offset_t va)
|
||||
vm_offset_t
|
||||
pmap_map(vm_offset_t *virt, vm_paddr_t start, vm_paddr_t end, int prot)
|
||||
{
|
||||
vm_offset_t va, sva;
|
||||
|
||||
va = sva = *virt;
|
||||
while (start < end) {
|
||||
pmap_kenter(va, start);
|
||||
va += PAGE_SIZE;
|
||||
start += PAGE_SIZE;
|
||||
}
|
||||
pmap_invalidate_range(kernel_pmap, sva, va);
|
||||
*virt = va;
|
||||
return (sva);
|
||||
return PHYS_TO_DMAP(start);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user