Home
last modified time | relevance | path

Searched refs:get_current_thread (Results 1 – 25 of 26) sorted by relevance

12

/lk-master/kernel/
A Dmutex.c42 if (unlikely(m->holder != 0 && get_current_thread() != m->holder)) in mutex_destroy()
44 get_current_thread(), get_current_thread()->name, m, m->holder, m->holder->name); in mutex_destroy()
68 if (unlikely(get_current_thread() == m->holder)) in mutex_acquire_timeout()
70 get_current_thread(), get_current_thread()->name, m); in mutex_acquire_timeout()
95 m->holder = get_current_thread(); in mutex_acquire_timeout()
109 if (unlikely(get_current_thread() != m->holder)) { in mutex_release()
111get_current_thread(), get_current_thread()->name, m, m->holder, m->holder ? m->holder->name : "non… in mutex_release()
A Dthread.c206 thread_t *current_thread = get_current_thread(); in thread_create_etc()
241 if (t == get_current_thread()) { in thread_set_real_time()
382 thread_t *current_thread = get_current_thread(); in thread_exit()
472 thread_t *current_thread = get_current_thread(); in thread_resched()
606 thread_t *current_thread = get_current_thread(); in thread_yield()
642 thread_t *current_thread = get_current_thread(); in thread_preempt()
706 thread_t *current_thread = get_current_thread(); in thread_timer_tick()
749 thread_t *current_thread = get_current_thread(); in thread_sleep()
813 thread_t *current_thread = get_current_thread(); in thread_set_name()
850 thread_t *t = get_current_thread(); in thread_become_idle()
[all …]
/lk-master/app/tests/
A Dthread_tests.c24 printf("sleeper %p\n", get_current_thread()); in sleep_thread()
46 …printf("semaphore producer %p starting up, running for %d iterations\n", get_current_thread(), sem… in semaphore_producer()
68 …printf("semaphore consumer %p starting up, running for %u iterations\n", get_current_thread(), ite… in semaphore_consumer()
71 printf("semaphore consumer %p done\n", get_current_thread()); in semaphore_consumer()
121 …printf("mutex tester thread %p starting up, will go for %d iterations\n", get_current_thread(), it… in mutex_thread()
129 shared = (intptr_t)get_current_thread(); in mutex_thread()
242 printf("%p: waiting on event...\n", get_current_thread()); in event_waiter()
244 printf("%p: event_wait() returned error\n", get_current_thread()); in event_waiter()
247 printf("%p: done waiting on event...\n", get_current_thread()); in event_waiter()
304 …printf("%p: in this thread. rq %d\n", get_current_thread(), get_current_thread()->remaining_quantu… in quantum_tester()
/lk-master/kernel/include/kernel/
A Dthread.h182 static inline thread_t *get_current_thread(void) { in get_current_thread() function
202 return get_current_thread()->tls[entry]; in tls_get()
206 uintptr_t oldval = get_current_thread()->tls[entry]; in __tls_set()
207 get_current_thread()->tls[entry] = val; in __tls_set()
A Dmp.h93 static inline int mp_is_cpu_idle(uint cpu) { return (get_current_thread()->flags & THREAD_FLAG_IDLE… in mp_is_cpu_idle()
A Dmutex.h51 return m->holder == get_current_thread(); in is_mutex_held()
/lk-master/kernel/vm/
A Dvmm.c659 thread_t *current_thread = get_current_thread(); in vmm_free_aspace()
685 thread_t *t = get_current_thread(); in vmm_set_active_aspace()
778 get_current_thread()->aspace = aspace; in cmd_vmm()
787 if (get_current_thread()->aspace == aspace) { in cmd_vmm()
788 get_current_thread()->aspace = NULL; in cmd_vmm()
798 get_current_thread()->aspace = test_aspace; in cmd_vmm()
A Dvm.c126 return get_current_thread()->aspace; in vaddr_to_aspace()
/lk-master/arch/mips/
A Dthread.c22 thread_t *ct = get_current_thread(); in initial_thread_func()
/lk-master/arch/x86/
A Darch.c71 thread_t *ct = get_current_thread(); in arch_enter_uspace()
A Dfpu.c158 self = get_current_thread(); in fpu_dev_na_handler()
A Dfaults.c122 current_thread = get_current_thread(); in x86_pfe_handler()
/lk-master/arch/arm64/
A Dfpu.c84 thread_t *t = get_current_thread(); in arm64_fpu_exception()
A Dthread.c43 thread_t *current_thread = get_current_thread(); in initial_thread_func()
A Darch.c108 thread_t *ct = get_current_thread(); in arch_enter_uspace()
/lk-master/arch/m68k/
A Dthread.c22 thread_t *ct = get_current_thread(); in initial_thread_func()
/lk-master/arch/arm/arm/
A Dthread.c41 thread_t *ct = get_current_thread(); in initial_thread_func()
A Dfpu.c43 thread_t *t = get_current_thread(); in arm_fpu_undefined_instruction()
A Darch.c421 thread_t *ct = get_current_thread(); in arch_enter_uspace()
A Dfaults.c63 struct thread *current_thread = get_current_thread(); in dump_fault_frame()
/lk-master/arch/or1k/
A Dthread.c23 thread_t *ct = get_current_thread(); in initial_thread_func()
/lk-master/arch/riscv/
A Dthread.c25 thread_t *ct = get_current_thread(); in initial_thread_func()
A Darch.c127 thread_t *ct = get_current_thread(); in arch_enter_uspace()
/lk-master/arch/microblaze/
A Dthread.c22 thread_t *ct = get_current_thread(); in initial_thread_func()
/lk-master/lib/minip/
A Dtcp.c289 …LTRACEF("caller %p, thread %p, socket %p, ref now %d\n", __GET_CALLER(), get_current_thread(), s, … in inc_socket_ref()
297 …LTRACEF("caller %p, thread %p, socket %p, ref now %d\n", __GET_CALLER(), get_current_thread(), s, … in dec_socket_ref()

Completed in 24 milliseconds

12