diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-08 20:17:38 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-08 20:18:16 +0100 |
commit | 92257f56a32f16795402cdbeb76a8b4f56ea2369 (patch) | |
tree | fa520391b49f4bac7ad77ee065d68e8dcab2d8be /kern/thread.c | |
parent | a9c54f2c7f93127517b725952e67697bd82a7eeb (diff) | |
download | gnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.tar.gz gnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.tar.bz2 gnumach-92257f56a32f16795402cdbeb76a8b4f56ea2369.zip |
slock: Fix initialization of statically-allocated slocks
(this is actually a no-op for i386)
Diffstat (limited to 'kern/thread.c')
-rw-r--r-- | kern/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/thread.c b/kern/thread.c index bc155b45..17cc458c 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -75,7 +75,7 @@ struct kmem_cache thread_cache; struct kmem_cache thread_stack_cache; queue_head_t reaper_queue; -decl_simple_lock_data(, reaper_lock) +def_simple_lock_data(static, reaper_lock) /* private */ struct thread thread_template; @@ -83,7 +83,7 @@ struct thread thread_template; #if MACH_DEBUG #define STACK_MARKER 0xdeadbeefU boolean_t stack_check_usage = FALSE; -decl_simple_lock_data(, stack_usage_lock) +def_simple_lock_data(static, stack_usage_lock) vm_size_t stack_max_usage = 0; #endif /* MACH_DEBUG */ @@ -119,7 +119,7 @@ vm_size_t stack_max_usage = 0; * because stack_alloc_try/thread_invoke operate at splsched. */ -decl_simple_lock_data(, stack_lock_data)/* splsched only */ +def_simple_lock_data(static, stack_lock_data)/* splsched only */ #define stack_lock() simple_lock(&stack_lock_data) #define stack_unlock() simple_unlock(&stack_lock_data) |