Lock the kernel pmap in pmap_kenter().

Tested by: gallatin@
This commit is contained in:
Alan Cox 2004-09-13 20:36:01 +00:00
parent c3ebab0638
commit 4711f8d71d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135172
3 changed files with 6 additions and 0 deletions

View File

@ -1219,6 +1219,7 @@ pmap_kenter(vm_offset_t va, vm_offset_t pa)
}
}
PMAP_LOCK(kernel_pmap);
error = pmap_pvo_enter(kernel_pmap, pmap_upvo_zone,
&pmap_pvo_kunmanaged, va, pa, pte_lo, PVO_WIRED);
@ -1232,6 +1233,7 @@ pmap_kenter(vm_offset_t va, vm_offset_t pa)
if ((pte_lo & (PTE_I | PTE_G)) == 0) {
pmap_syncicache(pa, PAGE_SIZE);
}
PMAP_UNLOCK(kernel_pmap);
}
/*

View File

@ -1219,6 +1219,7 @@ pmap_kenter(vm_offset_t va, vm_offset_t pa)
}
}
PMAP_LOCK(kernel_pmap);
error = pmap_pvo_enter(kernel_pmap, pmap_upvo_zone,
&pmap_pvo_kunmanaged, va, pa, pte_lo, PVO_WIRED);
@ -1232,6 +1233,7 @@ pmap_kenter(vm_offset_t va, vm_offset_t pa)
if ((pte_lo & (PTE_I | PTE_G)) == 0) {
pmap_syncicache(pa, PAGE_SIZE);
}
PMAP_UNLOCK(kernel_pmap);
}
/*

View File

@ -1219,6 +1219,7 @@ pmap_kenter(vm_offset_t va, vm_offset_t pa)
}
}
PMAP_LOCK(kernel_pmap);
error = pmap_pvo_enter(kernel_pmap, pmap_upvo_zone,
&pmap_pvo_kunmanaged, va, pa, pte_lo, PVO_WIRED);
@ -1232,6 +1233,7 @@ pmap_kenter(vm_offset_t va, vm_offset_t pa)
if ((pte_lo & (PTE_I | PTE_G)) == 0) {
pmap_syncicache(pa, PAGE_SIZE);
}
PMAP_UNLOCK(kernel_pmap);
}
/*