Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149514553
D55525.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
591 B
Referenced Files
None
Subscribers
None
D55525.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D55525: pmap_enter: always pass PG_M to pmap_enter_pde if PG_RW is set
Attached
Detach File
Event Timeline
Log In to Comment