From 9d78d30a34ae406620b5b25847fc17ed2b08949a Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 24 Sep 2023 05:29:06 +0000 Subject: percpu active_thread using gs segment TESTED: As per previous commit Message-Id: <20230924052824.449219-4-damien@zamaudio.com> --- kern/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/machine.c') diff --git a/kern/machine.c b/kern/machine.c index 0aa0f3c6..87fbc4d1 100644 --- a/kern/machine.c +++ b/kern/machine.c @@ -635,7 +635,7 @@ void processor_doshutdown(processor_t processor) */ PMAP_DEACTIVATE_KERNEL(cpu); #ifndef MIGRATING_THREADS - active_threads[cpu] = THREAD_NULL; + percpu_array[cpu].active_thread = THREAD_NULL; #endif cpu_down(cpu); thread_wakeup((event_t)processor); -- cgit v1.2.3