Home
last modified time | relevance | path

Searched refs:new_thread (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/kernel/
Dthread.c383 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 …]
Dsched.c761 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/
Dkswap.h81 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 …]
Dkernel_arch_interface.h672 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr);
Dkernel_internal.h73 extern char *z_setup_new_thread(struct k_thread *new_thread,
/Zephyr-latest/arch/arc/core/
Dtls.c17 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/
Dkernel_arch_func.h44 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/
Dtls.c14 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/
Dtls.c14 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/
Dtls.c14 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/
Dtls.c24 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/
Dtls.c13 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/
Dtls.c18 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/
Dtracking.h58 #define sys_port_track_k_thread_create(new_thread) argument
120 #define sys_port_track_k_thread_create(new_thread) argument
Dtracing.h70 #define sys_port_trace_k_thread_create(new_thread) argument
/Zephyr-latest/include/zephyr/arch/
Darch_interface.h940 struct k_thread *new_thread) in arch_cohere_stacks() argument
944 ARG_UNUSED(new_thread); in arch_cohere_stacks()
/Zephyr-latest/subsys/tracing/sysview/
Dtracing_sysview.h31 #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/
Dtracing_ctf.h24 #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/
Dtracing_user.h104 #define sys_port_trace_k_thread_create(new_thread) sys_trace_thread_create(new_thread) argument
/Zephyr-latest/subsys/tracing/test/
Dtracing_test.h17 #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/
Dkernel.h409 __syscall k_tid_t k_thread_create(struct k_thread *new_thread,