diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/proc_machdep.c | 5 |
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; |