summaryrefslogtreecommitdiff
path: root/vm/vm_map.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-06-28 20:44:33 +0200
committerRichard Braun <rbraun@sceen.net>2013-06-28 20:44:33 +0200
commit0239be76d4601a2a1bf448965e0ffc7c17735613 (patch)
tree1494a4c85543b6b921a91b9e51b45e64e7b687e9 /vm/vm_map.c
parent4df29fcd578766758d516cb207a8a484aaf7e4b3 (diff)
x86/pmap: replace pmap_kextract with pmap_extract
As it was done for pmap_protect, replace a kernel-specific call with one that can handle both the kernel and regular pmaps. The new function isn't complete yet and cannot handle physical maps that aren't the kernel pmap or the currently loaded pmap.
Diffstat (limited to 'vm/vm_map.c')
-rw-r--r--vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 33c95183..16d440bb 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -227,7 +227,7 @@ vm_map_kentry_free(unsigned long va, size_t slab_size)
assert(slab_size == vm_map_kentry_slab_size);
for (i = 0; i < slab_size; i += PAGE_SIZE) {
- pa = pmap_kextract(va + i);
+ pa = pmap_extract(kernel_pmap, va + i);
assert(pa != 0);
page = vm_phys_lookup_page(pa);
assert(page != NULL);