summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/amd64/amd64/proc_machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/proc_machdep.c b/sys/arch/amd64/amd64/proc_machdep.c
index ba65af4..cb337fb 100644
--- a/sys/arch/amd64/amd64/proc_machdep.c
+++ b/sys/arch/amd64/amd64/proc_machdep.c
@@ -122,8 +122,12 @@ void
md_td_kick(struct proc *td)
{
struct trapframe *tfp;
+ struct cpu_info *ci;
tfp = &td->tf;
+ ci = this_cpu();
+ ci->curtd = td;
+
__ASMV(
"push %0\n"
"push %1\n"