aboutsummaryrefslogtreecommitdiff
path: root/core/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/stack.c')
-rw-r--r--core/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stack.c b/core/stack.c
index 05506f6..3edf984 100644
--- a/core/stack.c
+++ b/core/stack.c
@@ -250,7 +250,7 @@ void check_stacks(void)
unlock(&stack_check_lock);
}
if (lowest) {
- lock(&stack_check_lock);
+ lock(&bt_lock);
prlog(PR_NOTICE, "CPU %04x lowest stack mark %lld bytes left"
" pc=%08llx token=%lld\n",
lowest->pir, lowest->stack_bot_mark, lowest->stack_bot_pc,
@@ -258,7 +258,7 @@ void check_stacks(void)
backtrace_print(lowest->stack_bot_bt,
&lowest->stack_bot_bt_metadata,
NULL, NULL, true);
- unlock(&stack_check_lock);
+ unlock(&bt_lock);
}
this_cpu()->in_mcount = false;