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.
This commit is contained in:
deadwood 2023-02-13 21:38:45 +01:00
parent 1ee53aaa8b
commit 6c6ef98682
1 changed files with 1 additions and 1 deletions

View File

@ -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