From 30cb24fbc5700771208dddb9e5f42d0ae5d7ff38 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 12 Aug 2024 22:00:40 -0400 Subject: kernel/amd64: proc: Set curtd upon thread kick Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/proc_machdep.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') 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" -- cgit v1.2.3