mirror of https://github.com/deadw00d/AROS.git
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:
parent
1ee53aaa8b
commit
6c6ef98682
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue