diff options
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index b71bc1749c..a81f56cdfe 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -174,10 +174,13 @@ void switch_thread(void) | |||
174 | __attribute__((noinline)); | 174 | __attribute__((noinline)); |
175 | 175 | ||
176 | /**************************************************************************** | 176 | /**************************************************************************** |
177 | * Processor-specific section - include necessary core support | 177 | * Processor/OS-specific section - include necessary core support |
178 | */ | 178 | */ |
179 | #if defined(ANDROID) | 179 | |
180 | #include "thread-android-arm.c" | 180 | #if defined(HAVE_WIN32_FIBER_THREADS) |
181 | #include "thread-win32.c" | ||
182 | #elif defined(HAVE_SIGALTSTACK_THREADS) | ||
183 | #include "thread-unix.c" | ||
181 | #elif defined(CPU_ARM) | 184 | #elif defined(CPU_ARM) |
182 | #include "thread-arm.c" | 185 | #include "thread-arm.c" |
183 | #if defined (CPU_PP) | 186 | #if defined (CPU_PP) |
@@ -2308,6 +2311,9 @@ void init_threads(void) | |||
2308 | thread_exit(); | 2311 | thread_exit(); |
2309 | #endif /* NUM_CORES */ | 2312 | #endif /* NUM_CORES */ |
2310 | } | 2313 | } |
2314 | #ifdef INIT_MAIN_THREAD | ||
2315 | init_main_thread(&thread->context); | ||
2316 | #endif | ||
2311 | } | 2317 | } |
2312 | 2318 | ||
2313 | /* Shared stack scan helper for thread_stack_usage and idle_stack_usage */ | 2319 | /* Shared stack scan helper for thread_stack_usage and idle_stack_usage */ |