From a63efc16e5e25919881c18cbce74bfd5a42cbcb8 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 29 Jun 2024 00:26:05 -0400 Subject: kernel/amd64: proc: Update outdated comment Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/proc_machdep.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/arch/amd64') 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; -- cgit v1.2.3