Page MenuHomeFreeBSD

D55525.diff
No OneTemporary

D55525.diff

diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -7165,6 +7165,12 @@
/* Assert the required virtual and physical alignment. */
KASSERT((va & PDRMASK) == 0, ("pmap_enter: va unaligned"));
KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind"));
+ /*
+ * If we made it here and PG_M was not set, set it now. pmap_enter_pde
+ * requires PG_M to be set if PG_RW is.
+ */
+ if ((newpte & PG_RW) != 0)
+ newpte |= PG_M;
rv = pmap_enter_pde(pmap, va, newpte | PG_PS, flags, m, &lock);
goto out;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 25, 11:36 PM (8 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29015023
Default Alt Text
D55525.diff (591 B)

Event Timeline