diff options
author | peter <peter@FreeBSD.org> | 2003-10-30 04:08:22 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-30 04:08:22 +0000 |
commit | d9e8fa03e4f7594f2a1ac1263dffa5d431adfeeb (patch) | |
tree | d8451aa3d3473b2363ff578ddc0fd3a4559096fe /sys/amd64 | |
parent | ba966fc730186aeac16e34d61479ff21bc185086 (diff) | |
download | FreeBSD-src-d9e8fa03e4f7594f2a1ac1263dffa5d431adfeeb.zip FreeBSD-src-d9e8fa03e4f7594f2a1ac1263dffa5d431adfeeb.tar.gz |
MFi386: rev 1.451 (jhb): call pmap_kremove() rather than duplicate it
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 0a7797d..f9a73f3 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2695,7 +2695,6 @@ pmap_unmapdev(va, size) vm_size_t size; { vm_offset_t base, offset, tmpva; - pt_entry_t *pte; /* If we gave a direct map region in pmap_mapdev, do nothing */ if (va >= DMAP_MIN_ADDRESS && va < DMAP_MAX_ADDRESS) @@ -2703,10 +2702,8 @@ pmap_unmapdev(va, size) base = va & PG_FRAME; offset = va & PAGE_MASK; size = roundup(offset + size, PAGE_SIZE); - for (tmpva = base; tmpva < (base + size); tmpva += PAGE_SIZE) { - pte = vtopte(tmpva); - pte_clear(pte); - } + for (tmpva = base; tmpva < (base + size); tmpva += PAGE_SIZE) + pmap_kremove(tmpva); pmap_invalidate_range(kernel_pmap, va, tmpva); kmem_free(kernel_map, base, size); } |