Lines Matching refs:curr_thread
217 int ct = l->curr_thread; in get_stackcheck_recursion_flag()
260 l->curr_thread = 0; in thread_init_boot_thread()
268 assert(l->curr_thread >= 0 && l->curr_thread < CFG_NUM_THREADS); in thread_clr_boot_thread()
269 assert(threads[l->curr_thread].state == THREAD_STATE_ACTIVE); in thread_clr_boot_thread()
270 threads[l->curr_thread].state = THREAD_STATE_FREE; in thread_clr_boot_thread()
271 l->curr_thread = THREAD_ID_INVALID; in thread_clr_boot_thread()
309 int ct = l->curr_thread; in get_stack_limits()
362 ret = (l->curr_thread != THREAD_ID_INVALID) && in thread_is_in_normal_mode()
376 short int ct = l->curr_thread; in thread_get_id_may_fail()
463 tcl[n].curr_thread = THREAD_ID_INVALID; in thread_init_thread_core_local()
511 assert(l->curr_thread != THREAD_ID_INVALID); in thread_get_ctx_regs()
512 return &threads[l->curr_thread].regs; in thread_get_ctx_regs()
523 assert(l->curr_thread != THREAD_ID_INVALID); in thread_set_foreign_intr()
526 threads[l->curr_thread].flags |= in thread_set_foreign_intr()
534 threads[l->curr_thread].flags &= in thread_set_foreign_intr()
547 assert(l->curr_thread != THREAD_ID_INVALID); in thread_restore_foreign_intr()
549 if (threads[l->curr_thread].flags & THREAD_FLAGS_FOREIGN_INTR_ENABLE) in thread_restore_foreign_intr()