Searched refs:current_thread (Results 1 – 13 of 13) sorted by relevance
| /kernel/include/kernel/ |
| A D | interrupt.h | 20 thread_t* current_thread = get_current_thread(); in int_handler_start() local 22 state->old_preempt_pending = current_thread->preempt_pending; in int_handler_start() 25 current_thread->preempt_pending = false; in int_handler_start() 34 thread_t* current_thread = get_current_thread(); in int_handler_finish() local 37 if (current_thread->preempt_pending) { in int_handler_finish() 49 current_thread->preempt_pending = state->old_preempt_pending; in int_handler_finish()
|
| A D | thread.h | 416 thread_t* current_thread = get_current_thread(); in thread_preempt_disable() local 418 ++current_thread->disable_counts; in thread_preempt_disable() 428 thread_t* current_thread = get_current_thread(); in thread_preempt_reenable() local 445 thread_t* current_thread = get_current_thread(); in thread_preempt_reenable_no_resched() local 447 --current_thread->disable_counts; in thread_preempt_reenable_no_resched() 466 thread_t* current_thread = get_current_thread(); in thread_resched_disable() local 468 current_thread->disable_counts += 1 << 16; in thread_resched_disable() 478 thread_t* current_thread = get_current_thread(); in thread_resched_reenable() local 481 current_thread->disable_counts = new_count; in thread_resched_reenable() 500 thread_t* current_thread = get_current_thread(); in thread_preempt_set_pending() local [all …]
|
| /kernel/kernel/ |
| A D | sched.cpp | 408 current_thread->remaining_time_slice = 0; in sched_yield() 409 deboost_thread(current_thread, false); in sched_yield() 411 current_thread->state = THREAD_READY; in sched_yield() 429 DEBUG_ASSERT(current_thread->last_cpu == current_thread->curr_cpu); in sched_preempt() 432 current_thread->state = THREAD_READY; in sched_preempt() 462 if (current_thread->disable_counts != 0) { in sched_reschedule() 468 DEBUG_ASSERT(current_thread->last_cpu == current_thread->curr_cpu); in sched_reschedule() 471 current_thread->state = THREAD_READY; in sched_reschedule() 499 current_thread->state = THREAD_READY; in migrate_current_thread() 785 DEBUG_ASSERT_MSG(current_thread->state != THREAD_RUNNING, "state %d\n", current_thread->state); in sched_resched_internal() [all …]
|
| A D | thread.cpp | 491 current_thread->state = THREAD_DEATH; in thread_exit_locked() 492 current_thread->retcode = retcode; in thread_exit_locked() 500 if (current_thread->stack.base || (current_thread->flags & THREAD_FLAG_FREE_STRUCT)) { in thread_exit_locked() 531 DEBUG_ASSERT(current_thread != t); in thread_forget() 717 if (check_kill_signal(current_thread)) { in thread_process_pending_signals() 779 if (!thread_is_idle(current_thread)) { in thread_preempt() 914 current_thread->state = THREAD_SLEEPING; in thread_sleep_etc() 915 current_thread->blocked_status = ZX_OK; in thread_sleep_etc() 919 current_thread->interruptable = false; in thread_sleep_etc() 924 return current_thread->blocked_status; in thread_sleep_etc() [all …]
|
| A D | wait.cpp | 229 thread_t* current_thread = get_current_thread(); in wait_queue_block_etc() local 232 DEBUG_ASSERT(current_thread->state == THREAD_RUNNING); in wait_queue_block_etc() 244 if (current_thread->interruptable && in wait_queue_block_etc() 245 (unlikely(current_thread->signals & ~signal_mask))) { in wait_queue_block_etc() 246 if (current_thread->signals & THREAD_SIGNAL_KILL) { in wait_queue_block_etc() 248 } else if (current_thread->signals & THREAD_SIGNAL_SUSPEND) { in wait_queue_block_etc() 253 wait_queue_insert(wait, current_thread); in wait_queue_block_etc() 255 current_thread->state = THREAD_BLOCKED; in wait_queue_block_etc() 256 current_thread->blocking_wait_queue = wait; in wait_queue_block_etc() 257 current_thread->blocked_status = ZX_OK; in wait_queue_block_etc() [all …]
|
| A D | event.cpp | 71 thread_t* current_thread = get_current_thread(); in event_wait_worker() local 79 current_thread->interruptable = interruptable; in event_wait_worker() 92 current_thread->interruptable = false; in event_wait_worker()
|
| /kernel/object/ |
| A D | semaphore.cpp | 29 thread_t *current_thread = get_current_thread(); in Wait() local 37 current_thread->interruptable = true; in Wait() 48 current_thread->interruptable = false; in Wait()
|
| A D | futex_node.cpp | 165 thread_t* current_thread = get_current_thread(); in BlockThread() local 167 current_thread->interruptable = true; in BlockThread() 169 current_thread->interruptable = false; in BlockThread()
|
| /kernel/lib/lockdep/ |
| A D | lock_dep.cpp | 129 thread_t* const current_thread = get_current_thread(); in SystemLockValidationError() local 132 thread_owner_name(current_thread, owner_name); in SystemLockValidationError() 134 const uint64_t user_pid = current_thread->user_pid; in SystemLockValidationError() 135 const uint64_t user_tid = current_thread->user_tid; in SystemLockValidationError() 139 current_thread, user_pid, user_tid, owner_name, current_thread->name); in SystemLockValidationError()
|
| /kernel/arch/x86/include/arch/x86/ |
| A D | mp.h | 46 struct thread *current_thread; member 79 static_assert(__offsetof(struct x86_percpu, current_thread) == PERCPU_CURRENT_THREAD_OFFSET, "");
|
| /kernel/vm/ |
| A D | vmm.cpp | 49 thread_t* current_thread = get_current_thread(); in vmm_page_fault_handler() local 50 TRACEF("thread %s va %#" PRIxPTR ", flags 0x%x\n", current_thread->name, addr, flags); in vmm_page_fault_handler()
|
| /kernel/arch/x86/ |
| A D | faults.cpp | 311 thread_t* current_thread = get_current_thread(); in x86_pfe_handler() local 312 if (unlikely(current_thread->arch.page_fault_resume)) { in x86_pfe_handler() 313 frame->ip = (uintptr_t)current_thread->arch.page_fault_resume; in x86_pfe_handler()
|
| A D | mp.cpp | 58 .current_thread = {},
|
Completed in 32 milliseconds