/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 22 stack_ptr -= tls_size_aligned; in arch_tls_stack_setup() 23 memcpy(stack_ptr, _arcmwdt_tls_start, tls_size); in arch_tls_stack_setup() 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 52 stack_ptr -= z_tls_data_size(); in arch_tls_stack_setup() 53 z_tls_copy(stack_ptr); in arch_tls_stack_setup() 56 stack_ptr -= sizeof(uintptr_t) * 2; in arch_tls_stack_setup() 62 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
D | thread.c | 98 char *stack_ptr) in get_iframe() argument 112 uframe->user_sp = (uint32_t)stack_ptr; in get_iframe() 116 return Z_STACK_PTR_TO_FRAME(struct init_stack_frame, stack_ptr); in get_iframe() 126 uintptr_t stack_ptr) in arch_setup_callee_saved_regs() argument 128 _callee_saved_stack_t *regs = UINT_TO_POINTER(stack_ptr); in arch_setup_callee_saved_regs() 154 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 162 iframe = get_iframe(thread, stack_ptr); in arch_new_thread()
|
/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 30 stack_ptr -= sizeof(uintptr_t); in arch_tls_stack_setup() 31 self_ptr = (void *)stack_ptr; in arch_tls_stack_setup() 32 *self_ptr = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup() 41 stack_ptr -= z_tls_data_size(); in arch_tls_stack_setup() 42 z_tls_copy(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 30 stack_ptr -= z_tls_data_size(); in arch_tls_stack_setup() 31 z_tls_copy(stack_ptr); in arch_tls_stack_setup() 34 stack_ptr -= sizeof(uintptr_t) * 2; in arch_tls_stack_setup() 40 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
D | thread.c | 86 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 105 pInitCtx = Z_STACK_PTR_TO_FRAME(struct arch_esf, stack_ptr); in arch_new_thread()
|
/Zephyr-latest/arch/arm/core/ |
D | tls.c | 24 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr) 40 stack_ptr -= z_tls_data_size(); 41 z_tls_copy(stack_ptr); 44 stack_ptr -= sizeof(uintptr_t) * 2; 50 new_thread->tls = POINTER_TO_UINT(stack_ptr);
|
/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 34 stack_ptr -= z_tls_data_size(); in arch_tls_stack_setup() 35 z_tls_copy(stack_ptr); in arch_tls_stack_setup() 38 stack_ptr -= sizeof(uintptr_t) * 2; in arch_tls_stack_setup() 44 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
D | thread.c | 129 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 132 thread->switch_handle = init_stack(thread, (int *)stack_ptr, entry, in arch_new_thread() 136 __ASSERT((((size_t)stack_ptr) % XCHAL_DCACHE_LINESIZE) == 0, ""); in arch_new_thread() 137 sys_cache_data_flush_and_invd_range(stack, (char *)stack_ptr - (char *)stack); in arch_new_thread()
|
/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() 18 stack_ptr -= z_tls_data_size(); in arch_tls_stack_setup() 19 z_tls_copy(stack_ptr); in arch_tls_stack_setup()
|
D | thread.c | 32 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 38 iframe = Z_STACK_PTR_TO_FRAME(struct init_stack_frame, stack_ptr); in arch_new_thread()
|
/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 25 stack_ptr -= z_tls_data_size(); in arch_tls_stack_setup() 26 z_tls_copy(stack_ptr); in arch_tls_stack_setup() 32 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
|
/Zephyr-latest/arch/x86/core/intel64/ |
D | tls.c | 10 void z_x86_early_tls_update_gdt(char *stack_ptr) in z_x86_early_tls_update_gdt() argument 19 stack_ptr -= sizeof(uintptr_t); in z_x86_early_tls_update_gdt() 20 self_ptr = (void *)stack_ptr; in z_x86_early_tls_update_gdt() 21 *self_ptr = POINTER_TO_UINT(stack_ptr); in z_x86_early_tls_update_gdt()
|
D | thread.c | 29 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 50 iframe = Z_STACK_PTR_TO_FRAME(struct x86_initial_frame, stack_ptr); in arch_new_thread()
|
/Zephyr-latest/arch/x86/core/ia32/ |
D | tls.c | 33 void z_x86_early_tls_update_gdt(char *stack_ptr) in z_x86_early_tls_update_gdt() argument 43 stack_ptr -= sizeof(uintptr_t); in z_x86_early_tls_update_gdt() 44 self_ptr = (void *)stack_ptr; in z_x86_early_tls_update_gdt() 45 *self_ptr = POINTER_TO_UINT(stack_ptr); in z_x86_early_tls_update_gdt()
|
D | thread.c | 76 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 97 stack_ptr); in arch_new_thread()
|
/Zephyr-latest/arch/mips/core/ |
D | thread.c | 19 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 26 Z_STACK_PTR_TO_FRAME(struct arch_esf, stack_ptr) in arch_new_thread()
|
/Zephyr-latest/arch/nios2/core/ |
D | thread.c | 32 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 38 iframe = Z_STACK_PTR_TO_FRAME(struct init_stack_frame, stack_ptr); in arch_new_thread()
|
/Zephyr-latest/kernel/include/ |
D | kernel_arch_interface.h | 77 char *stack_ptr, k_thread_entry_t entry, 174 void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr, 672 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr);
|
/Zephyr-latest/arch/posix/core/ |
D | swap.c | 83 void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr, in arch_switch_to_main_thread() argument 86 ARG_UNUSED(stack_ptr); in arch_switch_to_main_thread()
|
D | thread.c | 33 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 42 thread_status = Z_STACK_PTR_TO_FRAME(posix_thread_status_t, stack_ptr); in arch_new_thread()
|
/Zephyr-latest/arch/arm/core/cortex_m/ |
D | thread.c | 62 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 90 iframe = Z_STACK_PTR_TO_FRAME(struct __basic_sf, stack_ptr); in arch_new_thread() 335 #define IS_MPU_GUARD_VIOLATION(guard_start, guard_len, fault_addr, stack_ptr) \ argument 339 (stack_ptr < (guard_start + guard_len))) \ 341 (stack_ptr < (guard_start + guard_len))) 520 void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr, in arch_switch_to_main_thread() argument 590 : "r" (_main), "r" (stack_ptr) in arch_switch_to_main_thread()
|
/Zephyr-latest/kernel/ |
D | thread.c | 387 char *stack_ptr, *stack_buf_start; in setup_thread_stack() local 438 stack_ptr = (char *)stack_mapped + stack_obj_size; in setup_thread_stack() 451 stack_ptr = (char *)stack + stack_obj_size; in setup_thread_stack() 458 stack_buf_size, (void *)stack_ptr); in setup_thread_stack() 472 delta += arch_tls_stack_setup(new_thread, stack_ptr); in setup_thread_stack() 480 (struct _thread_userspace_local_data *)(stack_ptr - delta); in setup_thread_stack() 498 stack_ptr -= delta; in setup_thread_stack() 500 return stack_ptr; in setup_thread_stack() 514 char *stack_ptr; in z_setup_new_thread() local 547 stack_ptr = setup_thread_stack(new_thread, stack, stack_size); in z_setup_new_thread() [all …]
|
D | init.c | 655 char *stack_ptr; in prepare_multithreading() local 672 stack_ptr = z_setup_new_thread(&z_main_thread, z_main_stack, in prepare_multithreading() 683 return stack_ptr; in prepare_multithreading() 687 static FUNC_NORETURN void switch_to_main_thread(char *stack_ptr) in switch_to_main_thread() argument 690 arch_switch_to_main_thread(&z_main_thread, stack_ptr, bg_thread_main); in switch_to_main_thread() 692 ARG_UNUSED(stack_ptr); in switch_to_main_thread()
|
/Zephyr-latest/arch/arm/core/cortex_a_r/ |
D | thread.c | 53 char *stack_ptr, k_thread_entry_t entry, in arch_new_thread() argument 81 iframe = Z_STACK_PTR_TO_FRAME(struct __basic_sf, stack_ptr); in arch_new_thread() 260 #define IS_MPU_GUARD_VIOLATION(guard_start, guard_len, fault_addr, stack_ptr) \ argument 264 (stack_ptr < (guard_start + guard_len))) \ 266 (stack_ptr < (guard_start + guard_len)))
|
/Zephyr-latest/scripts/coredump/gdbstubs/arch/ |
D | arm_cortex_m.py | 141 stack_ptr = int.from_bytes(stack_ptr_bytes, "little") 142 barray = self.get_memory(stack_ptr, (size_t_size * 8)) 156 thread_registers[RegNum.SP] = stack_ptr + 32
|