summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-29 21:58:43 -0500
committerIan Moffett <ian@osmora.org>2024-02-29 21:58:43 -0500
commitf8bb4e99a64aa9df31465ee817fc5623a2822b63 (patch)
tree7bf4550fd65d26157adcc5fac07d0de146bca232 /sys/arch
parent31aa84528af5a92c3019e6abaa949eb20a4e73d9 (diff)
kernel/amd64: pmap: Add user pte flag
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/pmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c
index e898e74..7b8609a 100644
--- a/sys/arch/amd64/amd64/pmap.c
+++ b/sys/arch/amd64/amd64/pmap.c
@@ -64,6 +64,8 @@ pmap_prot_to_pte(vm_prot_t prot)
pte_flags |= PTE_RW;
if (__TEST(prot, PROT_EXEC))
pte_flags &= ~(PTE_NX);
+ if (__TEST(prot, PROT_USER))
+ pte_flags |= PTE_US;
return pte_flags;
}