diff options
author | Damien Zammit <damien@zamaudio.com> | 2023-09-25 00:24:25 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-25 10:21:29 +0200 |
commit | b3921098e2807d6225d277986bc8063b6a271e88 (patch) | |
tree | 93aa20fdb9f5ef3055069dd913afd0ad09d4ca23 /kern/thread.h | |
parent | be0abe4c2361f2c7db5a52b0900e298083fefe40 (diff) | |
download | gnumach-b3921098e2807d6225d277986bc8063b6a271e88.tar.gz gnumach-b3921098e2807d6225d277986bc8063b6a271e88.tar.bz2 gnumach-b3921098e2807d6225d277986bc8063b6a271e88.zip |
percpu: active_stack with gs
Message-Id: <20230925002417.467022-1-damien@zamaudio.com>
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kern/thread.h b/kern/thread.h index 144160d5..7bfe2e89 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -268,9 +268,6 @@ typedef struct thread *thread_t; typedef mach_port_t *thread_array_t; #endif /* _KERN_KERN_TYPES_H_ */ - -extern vm_offset_t active_stacks[NCPUS]; /* active kernel stacks */ - #ifdef KERNEL /* * User routines @@ -417,7 +414,7 @@ extern void thread_unfreeze( #define current_thread() (percpu_get(thread_t, active_thread)) #endif /* CURRENT_THREAD */ -#define current_stack() (active_stacks[cpu_number()]) +#define current_stack() (percpu_get(vm_offset_t, active_stack)) #define current_task() (current_thread()->task) #define current_space() (current_task()->itk_space) |