mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-22 16:44:32 +01:00
Lock the kernel pmap in pmap_kenter().
Tested by: gallatin@
This commit is contained in:
parent
c3ebab0638
commit
4711f8d71d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135172
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user