summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/aarch64/aarch64/pmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/aarch64/aarch64/pmap.c b/sys/arch/aarch64/aarch64/pmap.c
index 082c2cb..870ef80 100644
--- a/sys/arch/aarch64/aarch64/pmap.c
+++ b/sys/arch/aarch64/aarch64/pmap.c
@@ -111,6 +111,8 @@ pmap_prot_to_pte(vm_prot_t prot)
if (ISSET(prot, PROT_WRITE))
pte_flags &= ~PTE_READONLY;
+ if (ISSET(prot, PROT_EXEC))
+ pte_flags &= ~PTE_XN;
if (ISSET(prot, PROT_USER))
pte_flags |= PTE_USER;