From b3921098e2807d6225d277986bc8063b6a271e88 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Mon, 25 Sep 2023 00:24:25 +0000 Subject: percpu: active_stack with gs Message-Id: <20230925002417.467022-1-damien@zamaudio.com> --- kern/startup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/startup.c') 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); -- cgit v1.2.3