/lk-master/kernel/ |
A D | mutex.c | 42 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() 111 …get_current_thread(), get_current_thread()->name, m, m->holder, m->holder ? m->holder->name : "non… in mutex_release()
|
A D | thread.c | 206 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 D | thread_tests.c | 24 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 D | thread.h | 182 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 D | mp.h | 93 static inline int mp_is_cpu_idle(uint cpu) { return (get_current_thread()->flags & THREAD_FLAG_IDLE… in mp_is_cpu_idle()
|
A D | mutex.h | 51 return m->holder == get_current_thread(); in is_mutex_held()
|
/lk-master/kernel/vm/ |
A D | vmm.c | 659 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 D | vm.c | 126 return get_current_thread()->aspace; in vaddr_to_aspace()
|
/lk-master/arch/mips/ |
A D | thread.c | 22 thread_t *ct = get_current_thread(); in initial_thread_func()
|
/lk-master/arch/x86/ |
A D | arch.c | 71 thread_t *ct = get_current_thread(); in arch_enter_uspace()
|
A D | fpu.c | 158 self = get_current_thread(); in fpu_dev_na_handler()
|
A D | faults.c | 122 current_thread = get_current_thread(); in x86_pfe_handler()
|
/lk-master/arch/arm64/ |
A D | fpu.c | 84 thread_t *t = get_current_thread(); in arm64_fpu_exception()
|
A D | thread.c | 43 thread_t *current_thread = get_current_thread(); in initial_thread_func()
|
A D | arch.c | 108 thread_t *ct = get_current_thread(); in arch_enter_uspace()
|
/lk-master/arch/m68k/ |
A D | thread.c | 22 thread_t *ct = get_current_thread(); in initial_thread_func()
|
/lk-master/arch/arm/arm/ |
A D | thread.c | 41 thread_t *ct = get_current_thread(); in initial_thread_func()
|
A D | fpu.c | 43 thread_t *t = get_current_thread(); in arm_fpu_undefined_instruction()
|
A D | arch.c | 421 thread_t *ct = get_current_thread(); in arch_enter_uspace()
|
A D | faults.c | 63 struct thread *current_thread = get_current_thread(); in dump_fault_frame()
|
/lk-master/arch/or1k/ |
A D | thread.c | 23 thread_t *ct = get_current_thread(); in initial_thread_func()
|
/lk-master/arch/riscv/ |
A D | thread.c | 25 thread_t *ct = get_current_thread(); in initial_thread_func()
|
A D | arch.c | 127 thread_t *ct = get_current_thread(); in arch_enter_uspace()
|
/lk-master/arch/microblaze/ |
A D | thread.c | 22 thread_t *ct = get_current_thread(); in initial_thread_func()
|
/lk-master/lib/minip/ |
A D | tcp.c | 289 …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()
|