summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2023-09-25 00:24:25 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-25 10:21:29 +0200
commitb3921098e2807d6225d277986bc8063b6a271e88 (patch)
tree93aa20fdb9f5ef3055069dd913afd0ad09d4ca23 /kern/thread.c
parentbe0abe4c2361f2c7db5a52b0900e298083fefe40 (diff)
percpu: active_stack with gs
Message-Id: <20230925002417.467022-1-damien@zamaudio.com>
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kern/thread.c b/kern/thread.c
index c397de84..38287581 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -69,8 +69,6 @@
#include <machine/pcb.h>
#include <machine/thread.h> /* for MACHINE_STACK */
-vm_offset_t active_stacks[NCPUS];
-
struct kmem_cache thread_cache;
struct kmem_cache thread_stack_cache;
@@ -2572,7 +2570,7 @@ kern_return_t processor_set_stack_usage(
for (cpu = 0; cpu < smp_get_numcpus(); cpu++)
if (percpu_array[cpu].active_thread == thread) {
- stack = active_stacks[cpu];
+ stack = percpu_array[cpu].active_stack;
break;
}
}