diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/proc_machdep.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/amd64/amd64/proc_machdep.c b/sys/arch/amd64/amd64/proc_machdep.c index aa8847a..63604a4 100644 --- a/sys/arch/amd64/amd64/proc_machdep.c +++ b/sys/arch/amd64/amd64/proc_machdep.c @@ -124,18 +124,12 @@ md_td_kick(struct proc *td) { struct trapframe *tfp; struct cpu_info *ci; - uint8_t rpl; - uint16_t ds = KERNEL_DS; + uint16_t ds = USER_DS | 3; tfp = &td->tf; - rpl = tfp->cs & 3; ci = this_cpu(); ci->curtd = td; - - if (rpl == 3) { - td->flags &= ~PROC_KTD; - ds = USER_DS | 3; - } + td->flags &= ~PROC_KTD; __ASMV( "mov %0, %%rax\n" |