summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/sdl/thread-sdl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/thread-sdl.c b/firmware/target/hosted/sdl/thread-sdl.c
index eaffa86aee..fbc26c8a9f 100644
--- a/firmware/target/hosted/sdl/thread-sdl.c
+++ b/firmware/target/hosted/sdl/thread-sdl.c
@@ -32,6 +32,7 @@
32#include "kernel.h" 32#include "kernel.h"
33#include "thread.h" 33#include "thread.h"
34#include "debug.h" 34#include "debug.h"
35#include "core_alloc.h"
35 36
36/* Define this as 1 to show informational messages that are not errors. */ 37/* Define this as 1 to show informational messages that are not errors. */
37#define THREAD_SDL_DEBUGF_ENABLED 0 38#define THREAD_SDL_DEBUGF_ENABLED 0
@@ -382,6 +383,9 @@ void switch_thread(void)
382 } /* STATE_SLEEPING: */ 383 } /* STATE_SLEEPING: */
383 } 384 }
384 385
386#ifdef DEBUG
387 core_check_valid();
388#endif
385 cores[CURRENT_CORE].running = current; 389 cores[CURRENT_CORE].running = current;
386 390
387 if (threads_status != THREADS_RUN) 391 if (threads_status != THREADS_RUN)