diff options
author | jhb <jhb@FreeBSD.org> | 2003-10-27 22:15:02 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-10-27 22:15:02 +0000 |
commit | 0e8406cd424af80be4aa7bac5d9d4ea34fd68be4 (patch) | |
tree | 35a2cc95a704e7ef7207ca864c20b08981fc20db | |
parent | 41ec55c865d11300c8d1b6847c05f1574582870e (diff) | |
download | FreeBSD-src-0e8406cd424af80be4aa7bac5d9d4ea34fd68be4.zip FreeBSD-src-0e8406cd424af80be4aa7bac5d9d4ea34fd68be4.tar.gz |
Fix pmap_unmapdev() to call pmap_kremove() instead of implementing it
directly so that it more closely mirrors pmap_mapdev() which calls
pmap_kenter().
-rw-r--r-- | sys/i386/i386/pmap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index c908fa6..e7a240c 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -2903,15 +2903,12 @@ pmap_unmapdev(va, size) vm_size_t size; { vm_offset_t base, offset, tmpva; - pt_entry_t *pte; 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); } |