Page MenuHomeFreeBSD

D14062.id39324.diff
No OneTemporary

D14062.id39324.diff

Index: head/sys/amd64/amd64/pmap.c
===================================================================
--- head/sys/amd64/amd64/pmap.c
+++ head/sys/amd64/amd64/pmap.c
@@ -2338,7 +2338,7 @@
pa = VM_PAGE_TO_PHYS(m) | cache_bits;
if ((*pte & (PG_FRAME | X86_PG_PTE_CACHE)) != pa) {
oldpte |= *pte;
- pte_store(pte, pa | pg_g | X86_PG_RW | X86_PG_V);
+ pte_store(pte, pa | pg_g | pg_nx | X86_PG_RW | X86_PG_V);
}
pte++;
}
Index: head/sys/i386/i386/pmap.c
===================================================================
--- head/sys/i386/i386/pmap.c
+++ head/sys/i386/i386/pmap.c
@@ -1677,7 +1677,11 @@
pa = VM_PAGE_TO_PHYS(m) | pmap_cache_bits(m->md.pat_mode, 0);
if ((*pte & (PG_FRAME | PG_PTE_CACHE)) != pa) {
oldpte |= *pte;
+#if defined(PAE) || defined(PAE_TABLES)
+ pte_store(pte, pa | pgeflag | pg_nx | PG_RW | PG_V);
+#else
pte_store(pte, pa | pgeflag | PG_RW | PG_V);
+#endif
}
pte++;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 21, 10:27 AM (12 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16007910
Default Alt Text
D14062.id39324.diff (941 B)

Event Timeline