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:
Peter Grehan 2006-11-30 08:13:06 +00:00
parent d4fbc81d99
commit 9955cf96f6
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;