diff options
author | alc <alc@FreeBSD.org> | 2004-07-12 04:40:26 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-07-12 04:40:26 +0000 |
commit | 582e79f50a2998cc6be173d4bc95915eb6c95ed6 (patch) | |
tree | b02245ad0ee45b5647c09440fca1435e783a5b1c /sys/powerpc | |
parent | 5fb9f28d80e57fbad7faa5b49b66b4fd1f5f6063 (diff) | |
download | FreeBSD-src-582e79f50a2998cc6be173d4bc95915eb6c95ed6.zip FreeBSD-src-582e79f50a2998cc6be173d4bc95915eb6c95ed6.tar.gz |
pmap_remove_pages() must not remove wired mappings. Since
pmap_remove_pages() is an optimization, its implementation is optional.
Discussed with: grehan
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/mmu_oea.c | 4 | ||||
-rw-r--r-- | sys/powerpc/powerpc/mmu_oea.c | 4 | ||||
-rw-r--r-- | sys/powerpc/powerpc/pmap.c | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c index db5b510..01ce771 100644 --- a/sys/powerpc/aim/mmu_oea.c +++ b/sys/powerpc/aim/mmu_oea.c @@ -1585,10 +1585,6 @@ pmap_remove_all(vm_page_t m) void pmap_remove_pages(pmap_t pm, vm_offset_t sva, vm_offset_t eva) { - - KASSERT(pm == &curproc->p_vmspace->vm_pmap || pm == kernel_pmap, - ("pmap_remove_pages: non current pmap")); - pmap_remove(pm, sva, eva); } /* diff --git a/sys/powerpc/powerpc/mmu_oea.c b/sys/powerpc/powerpc/mmu_oea.c index db5b510..01ce771 100644 --- a/sys/powerpc/powerpc/mmu_oea.c +++ b/sys/powerpc/powerpc/mmu_oea.c @@ -1585,10 +1585,6 @@ pmap_remove_all(vm_page_t m) void pmap_remove_pages(pmap_t pm, vm_offset_t sva, vm_offset_t eva) { - - KASSERT(pm == &curproc->p_vmspace->vm_pmap || pm == kernel_pmap, - ("pmap_remove_pages: non current pmap")); - pmap_remove(pm, sva, eva); } /* diff --git a/sys/powerpc/powerpc/pmap.c b/sys/powerpc/powerpc/pmap.c index db5b510..01ce771 100644 --- a/sys/powerpc/powerpc/pmap.c +++ b/sys/powerpc/powerpc/pmap.c @@ -1585,10 +1585,6 @@ pmap_remove_all(vm_page_t m) void pmap_remove_pages(pmap_t pm, vm_offset_t sva, vm_offset_t eva) { - - KASSERT(pm == &curproc->p_vmspace->vm_pmap || pm == kernel_pmap, - ("pmap_remove_pages: non current pmap")); - pmap_remove(pm, sva, eva); } /* |