Page MenuHomeFreeBSD

D62362.1796398342.diff
No OneTemporary

Authored By
Unknown
Size
716 B
Referenced Files
None
Subscribers
None

D62362.1796398342.diff

diff --git a/sys/powerpc/aim/mmu_radix.c b/sys/powerpc/aim/mmu_radix.c
--- a/sys/powerpc/aim/mmu_radix.c
+++ b/sys/powerpc/aim/mmu_radix.c
@@ -4546,8 +4546,8 @@
newpde &= ~(PG_RW | PG_M);
newpde |= RPTE_EAA_R;
}
- if (prot & VM_PROT_EXECUTE)
- newpde |= PG_X;
+ if ((prot & VM_PROT_EXECUTE) == 0)
+ newpde &= ~PG_X;
if (newpde != oldpde) {
/*
* As an optimization to future operations on this PDE, clear
@@ -4666,8 +4666,8 @@
pbits &= ~(PG_RW | PG_M);
pbits |= RPTE_EAA_R;
}
- if (prot & VM_PROT_EXECUTE)
- pbits |= PG_X;
+ if ((prot & VM_PROT_EXECUTE) == 0)
+ pbits &= ~PG_X;
if (pbits != obits) {
if (!atomic_cmpset_long(pte, htobe64(obits), htobe64(pbits)))

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 4, 3:32 PM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42208231
Default Alt Text
D62362.1796398342.diff (716 B)

Event Timeline