diff options
Diffstat (limited to 'kern/startup.c')
-rw-r--r-- | kern/startup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/startup.c b/kern/startup.c index 177232fc..e72cf6f4 100644 --- a/kern/startup.c +++ b/kern/startup.c @@ -301,7 +301,7 @@ void cpu_launch_first_thread(thread_t th) PMAP_ACTIVATE_KERNEL(mycpu); percpu_assign(active_thread, th); - active_stacks[mycpu] = th->kernel_stack; + percpu_assign(active_stack, th->kernel_stack); thread_lock(th); th->state &= ~TH_UNINT; thread_unlock(th); |