From 6c6ef98682809081697bb9759f11c1065aad1a50 Mon Sep 17 00:00:00 2001 From: deadwood Date: Mon, 13 Feb 2023 21:38:45 +0100 Subject: [PATCH] Use atomic locks only when in SMP mode When non-SMP, a task outputting debug can be interrupted. If interrupt handler also tries outputting debug, it deadlocks on lock held by task. --- config/config.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.h.in b/config/config.h.in index 0865723434..f147b80213 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -32,7 +32,7 @@ /* DEBUG options */ // use atomic's to lock access when outputting debug -#if defined(__AROSEXEC_SMP__) || defined(__AROSPLATFORM_SMP__) +#if defined(__AROSEXEC_SMP__) #define DEBUG_USEATOMIC #endif