Don't use vm_page_flag_set() if installing bootstrap page-table entries
since the vm page mutex's aren't yet initialized. Fixes boot-time panic. Reported by: Dario Freni saturnero at freesbie dot org
This commit is contained in:
parent
d4fbc81d99
commit
9955cf96f6
@ -1131,7 +1131,8 @@ moea_enter_locked(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
|
||||
|
||||
if (prot & VM_PROT_WRITE) {
|
||||
pte_lo |= PTE_BW;
|
||||
vm_page_flag_set(m, PG_WRITEABLE);
|
||||
if (pmap_bootstrapped)
|
||||
vm_page_flag_set(m, PG_WRITEABLE);
|
||||
} else
|
||||
pte_lo |= PTE_BR;
|
||||
|
||||
|
@ -1131,7 +1131,8 @@ moea_enter_locked(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
|
||||
|
||||
if (prot & VM_PROT_WRITE) {
|
||||
pte_lo |= PTE_BW;
|
||||
vm_page_flag_set(m, PG_WRITEABLE);
|
||||
if (pmap_bootstrapped)
|
||||
vm_page_flag_set(m, PG_WRITEABLE);
|
||||
} else
|
||||
pte_lo |= PTE_BR;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user