/Zephyr-latest/kernel/ |
D | thread.c | 383 static char *setup_thread_stack(struct k_thread *new_thread, in setup_thread_stack() argument 443 new_thread->stack_info.mapped.addr = stack_mapped; in setup_thread_stack() 444 new_thread->stack_info.mapped.sz = stack_obj_size; in setup_thread_stack() 457 stack, new_thread, stack_obj_size, (void *)stack_buf_start, in setup_thread_stack() 472 delta += arch_tls_stack_setup(new_thread, stack_ptr); in setup_thread_stack() 479 new_thread->userspace_local_data = in setup_thread_stack() 494 new_thread->stack_info.start = (uintptr_t)stack_buf_start; in setup_thread_stack() 495 new_thread->stack_info.size = stack_buf_size; in setup_thread_stack() 496 new_thread->stack_info.delta = delta; in setup_thread_stack() 508 char *z_setup_new_thread(struct k_thread *new_thread, in z_setup_new_thread() argument [all …]
|
D | sched.c | 761 struct k_thread *new_thread; in need_swap() 764 new_thread = _kernel.ready_q.cache; in need_swap() 765 return new_thread != arch_current_thread(); in need_swap() 836 static inline void set_current(struct k_thread *new_thread) in set_current() argument 839 arch_current_thread_set(new_thread); in set_current() 881 struct k_thread *old_thread = arch_current_thread(), *new_thread; in z_get_next_switch_handle() local 886 new_thread = next_up(); in z_get_next_switch_handle() 888 z_sched_usage_switch(new_thread); in z_get_next_switch_handle() 890 if (old_thread != new_thread) { in z_get_next_switch_handle() 893 update_metairq_preempt(new_thread); in z_get_next_switch_handle() [all …]
|
/Zephyr-latest/kernel/include/ |
D | kswap.h | 81 struct k_thread *new_thread, *old_thread; in do_swap() local 121 new_thread = z_swap_next_thread(); in do_swap() 123 if (new_thread != old_thread) { in do_swap() 124 z_sched_usage_switch(new_thread); in do_swap() 128 new_thread->base.cpu = arch_curr_cpu()->id; in do_swap() 131 z_smp_release_global_lock(new_thread); in do_swap() 135 z_sched_switch_spin(new_thread); in do_swap() 136 arch_current_thread_set(new_thread); in do_swap() 139 z_reset_time_slice(new_thread); in do_swap() 146 arch_cohere_stacks(old_thread, NULL, new_thread); in do_swap() [all …]
|
D | kernel_arch_interface.h | 672 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr);
|
D | kernel_internal.h | 73 extern char *z_setup_new_thread(struct k_thread *new_thread,
|
/Zephyr-latest/arch/arc/core/ |
D | tls.c | 17 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) in arch_tls_stack_setup() argument 25 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup() 36 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) in arch_tls_stack_setup() argument 62 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
/Zephyr-latest/arch/xtensa/include/ |
D | kernel_arch_func.h | 44 struct k_thread *new_thread) in arch_cohere_stacks() argument 52 size_t nstack = new_thread->stack_info.start; in arch_cohere_stacks() 53 size_t nsz = new_thread->stack_info.size; in arch_cohere_stacks() 54 size_t nsp = (size_t) new_thread->switch_handle; in arch_cohere_stacks() 90 if (curr_cpu != new_thread->arch.last_cpu) { in arch_cohere_stacks()
|
/Zephyr-latest/arch/sparc/core/ |
D | tls.c | 14 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) in arch_tls_stack_setup() argument 16 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
/Zephyr-latest/arch/riscv/core/ |
D | tls.c | 14 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) in arch_tls_stack_setup() argument 32 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
/Zephyr-latest/arch/arm64/core/ |
D | tls.c | 14 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) in arch_tls_stack_setup() argument 40 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
/Zephyr-latest/arch/arm/core/ |
D | tls.c | 24 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) 50 new_thread->tls = POINTER_TO_UINT(stack_ptr);
|
/Zephyr-latest/arch/x86/core/ |
D | tls.c | 13 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) in arch_tls_stack_setup() argument 38 new_thread->tls = POINTER_TO_UINT(self_ptr); in arch_tls_stack_setup()
|
/Zephyr-latest/arch/xtensa/core/ |
D | tls.c | 18 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) in arch_tls_stack_setup() argument 44 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
/Zephyr-latest/include/zephyr/tracing/ |
D | tracking.h | 58 #define sys_port_track_k_thread_create(new_thread) argument 120 #define sys_port_track_k_thread_create(new_thread) argument
|
D | tracing.h | 70 #define sys_port_trace_k_thread_create(new_thread) argument
|
/Zephyr-latest/include/zephyr/arch/ |
D | arch_interface.h | 940 struct k_thread *new_thread) in arch_cohere_stacks() argument 944 ARG_UNUSED(new_thread); in arch_cohere_stacks()
|
/Zephyr-latest/subsys/tracing/sysview/ |
D | tracing_sysview.h | 31 #define sys_port_trace_k_thread_create(new_thread) \ argument 33 SEGGER_SYSVIEW_OnTaskCreate((uint32_t)(uintptr_t)new_thread); \ 34 sys_trace_thread_info(new_thread); \ 648 void sys_trace_k_thread_create(struct k_thread *new_thread, size_t stack_size, int prio);
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | tracing_ctf.h | 24 #define sys_port_trace_k_thread_create(new_thread) \ argument 25 sys_trace_k_thread_create(new_thread, stack_size, prio) 380 void sys_trace_k_thread_create(struct k_thread *new_thread, size_t stack_size,
|
/Zephyr-latest/subsys/tracing/user/ |
D | tracing_user.h | 104 #define sys_port_trace_k_thread_create(new_thread) sys_trace_thread_create(new_thread) argument
|
/Zephyr-latest/subsys/tracing/test/ |
D | tracing_test.h | 17 #define sys_port_trace_k_thread_create(new_thread) \ argument 18 sys_trace_k_thread_create(new_thread, stack_size, prio) 486 void sys_trace_k_thread_create(struct k_thread *new_thread, size_t stack_size, int prio);
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 409 __syscall k_tid_t k_thread_create(struct k_thread *new_thread,
|