summaryrefslogtreecommitdiff
path: root/firmware/kernel/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/kernel/thread.c')
-rw-r--r--firmware/kernel/thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/kernel/thread.c b/firmware/kernel/thread.c
index ea76421389..29ab9db873 100644
--- a/firmware/kernel/thread.c
+++ b/firmware/kernel/thread.c
@@ -1234,6 +1234,8 @@ unsigned int create_thread(void (*function)(void),
1234 */ 1234 */
1235void thread_wait(unsigned int thread_id) 1235void thread_wait(unsigned int thread_id)
1236{ 1236{
1237 ASSERT_CPU_MODE(CPU_MODE_THREAD_CONTEXT);
1238
1237 struct thread_entry *current = __running_self_entry(); 1239 struct thread_entry *current = __running_self_entry();
1238 struct thread_entry *thread = __thread_id_entry(thread_id); 1240 struct thread_entry *thread = __thread_id_entry(thread_id);
1239 1241