Lines Matching refs:curr_thread
335 int ct = l->curr_thread; in get_stackcheck_recursion_flag()
376 l->curr_thread = 0; in thread_init_boot_thread()
384 assert(l->curr_thread >= 0 && l->curr_thread < CFG_NUM_THREADS); in thread_clr_boot_thread()
385 assert(threads[l->curr_thread].state == THREAD_STATE_ACTIVE); in thread_clr_boot_thread()
386 threads[l->curr_thread].state = THREAD_STATE_FREE; in thread_clr_boot_thread()
387 l->curr_thread = THREAD_ID_INVALID; in thread_clr_boot_thread()
426 int ct = l->curr_thread; in get_stack_limits()
476 ret = (l->curr_thread != THREAD_ID_INVALID) && in thread_is_in_normal_mode()
490 short int ct = l->curr_thread; in thread_get_id_may_fail()
647 tcl[n].curr_thread = THREAD_ID_INVALID; in thread_init_thread_core_local()
699 assert(l->curr_thread != THREAD_ID_INVALID); in thread_get_ctx_regs()
700 return &threads[l->curr_thread].regs; in thread_get_ctx_regs()
711 assert(l->curr_thread != THREAD_ID_INVALID); in thread_set_foreign_intr()
714 threads[l->curr_thread].flags |= in thread_set_foreign_intr()
722 threads[l->curr_thread].flags &= in thread_set_foreign_intr()
735 assert(l->curr_thread != THREAD_ID_INVALID); in thread_restore_foreign_intr()
737 if (threads[l->curr_thread].flags & THREAD_FLAGS_FOREIGN_INTR_ENABLE) in thread_restore_foreign_intr()