aboutsummaryrefslogtreecommitdiff
path: root/kern/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/startup.c')
-rw-r--r--kern/startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/startup.c b/kern/startup.c
index 88608c7d..13acb850 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -300,7 +300,7 @@ void cpu_launch_first_thread(thread_t th)
PMAP_ACTIVATE_KERNEL(mycpu);
- active_threads[mycpu] = th;
+ percpu_assign(active_thread, th);
active_stacks[mycpu] = th->kernel_stack;
thread_lock(th);
th->state &= ~TH_UNINT;