diff options
| author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2003-06-20 14:09:33 +0000 |
|---|---|---|
| committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2003-06-20 14:09:33 +0000 |
| commit | e14720d6144d9bcf6fb7bf88de50297807fb02bf (patch) | |
| tree | 31bf45d54f80039c99b77465010a32bbf9107e1d /sys | |
| parent | 3c6001ec5df1bdbb8c52f747be5335f5a0f0a91a (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/amd64/amd64/pmap.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 30cbbbd47632..575720d068a2 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -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); } |
