summaryrefslogtreecommitdiff
path: root/src/sys/arch/amd64/cpu/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/arch/amd64/cpu/mmu.c')
-rw-r--r--src/sys/arch/amd64/cpu/mmu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/arch/amd64/cpu/mmu.c b/src/sys/arch/amd64/cpu/mmu.c
index 974e7d3..60fb4f1 100644
--- a/src/sys/arch/amd64/cpu/mmu.c
+++ b/src/sys/arch/amd64/cpu/mmu.c
@@ -97,6 +97,8 @@ prot_to_pte(int prot)
pte_flags |= PTE_P;
if (ISSET(prot, MMU_PROT_WRITE))
pte_flags |= PTE_RW;
+ if (ISSET(prot, MMU_PROT_USER))
+ pte_flags |= PTE_US;
if (ISSET(prot, MMU_PROT_EXEC))
pte_flags &= ~PTE_NX;