summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-29 00:26:05 -0400
committerIan Moffett <ian@osmora.org>2024-06-29 00:26:05 -0400
commita63efc16e5e25919881c18cbce74bfd5a42cbcb8 (patch)
tree666ea5108be4c195d526213fca6325302e4630e1
parent02e4278156d4f70604f8464947cfce3d57f4c551 (diff)
kernel/amd64: proc: Update outdated comment
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/arch/amd64/amd64/proc_machdep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/proc_machdep.c b/sys/arch/amd64/amd64/proc_machdep.c
index d2eb599..7609379 100644
--- a/sys/arch/amd64/amd64/proc_machdep.c
+++ b/sys/arch/amd64/amd64/proc_machdep.c
@@ -72,9 +72,8 @@ md_fork(struct proc *p, struct proc *parent, uintptr_t ip)
rpl = 3;
/*
- * RPL being 3 indicates that the parent thread is in
- * userland. If this is the case, we'd want this new thread
- * to also be in userland.
+ * RPL being 3 indicates that the new thread should be in
+ * userland. If this is the case, use user segment selectors.
*/
tfp->rip = ip;
tfp->cs = (rpl == 3) ? (USER_CS | 3) : KERNEL_CS;