1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00

Set PG_WRITEABLE in Book-E pmap_enter[_locked] if it creates a mapping that

permits write access. This is similar to r192671.

Pointed out and reviewed by:	alc
This commit is contained in:
Rafal Jaworowski 2009-05-26 06:24:50 +00:00
parent 92e839c638
commit 816192653f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192795

View File

@ -1574,6 +1574,8 @@ mmu_booke_enter_locked(mmu_t mmu, pmap_t pmap, vm_offset_t va, vm_page_t m,
flags |= PTE_SW;
if (!su)
flags |= PTE_UW;
vm_page_flag_set(m, PG_WRITEABLE);
} else {
/* Handle modified pages, sense modify status. */
@ -1638,6 +1640,8 @@ mmu_booke_enter_locked(mmu_t mmu, pmap_t pmap, vm_offset_t va, vm_page_t m,
flags |= PTE_SW;
if (!su)
flags |= PTE_UW;
vm_page_flag_set(m, PG_WRITEABLE);
}
if (prot & VM_PROT_EXECUTE) {