aboutsummaryrefslogtreecommitdiff
path: root/kern/debug.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 20:17:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-08 20:18:16 +0100
commit92257f56a32f16795402cdbeb76a8b4f56ea2369 (patch)
treefa520391b49f4bac7ad77ee065d68e8dcab2d8be /kern/debug.c
parenta9c54f2c7f93127517b725952e67697bd82a7eeb (diff)
downloadgnumach-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/debug.c')
-rw-r--r--kern/debug.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kern/debug.c b/kern/debug.c
index 44814925..cd782361 100644
--- a/kern/debug.c
+++ b/kern/debug.c
@@ -112,8 +112,7 @@ void Debugger(const char *message)
even before panic_init() gets called from the "normal" place in kern/startup.c.
(panic_init() still needs to be called from there
to make sure we get initialized before starting multiple processors.) */
-boolean_t panic_lock_initialized = FALSE;
-decl_simple_lock_data(, panic_lock)
+def_simple_lock_data(static, panic_lock)
const char *panicstr;
int paniccpu;
@@ -121,11 +120,6 @@ int paniccpu;
void
panic_init(void)
{
- if (!panic_lock_initialized)
- {
- panic_lock_initialized = TRUE;
- simple_lock_init(&panic_lock);
- }
}
#if ! MACH_KBD