Page MenuHomeFreeBSD
Paste P155

Masterwork From Distant Lands
ActivePublic

Authored by cem on Jan 9 2018, 8:59 PM.
Tags
None
Referenced Files
F3113043: Masterwork From Distant Lands
Jan 9 2018, 8:59 PM
Subscribers
None
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index f200a34af6c8..e77577bea4b6 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -2185,7 +2185,8 @@ pmap_qenter(vm_offset_t sva, vm_page_t *ma, int count)
pa = VM_PAGE_TO_PHYS(m) | cache_bits;
if ((*pte & (PG_FRAME | X86_PG_PTE_CACHE)) != pa) {
oldpte |= *pte;
- pte_store(pte, pa | X86_PG_G | X86_PG_RW | X86_PG_V);
+ pte_store(pte, pa | X86_PG_G | X86_PG_RW | X86_PG_V |
+ pg_nx);
}
pte++;
}

Event Timeline

cem changed the title of this paste from untitled to Masterwork From Distant Lands.
cem updated the paste's language from autodetect to autodetect.