Home
last modified time | relevance | path

Searched refs:stack_info (Results 1 – 25 of 50) sorted by relevance

12

/Zephyr-latest/arch/arm/core/cortex_a_r/
Dthread.c64 thread->stack_info.start += MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
65 thread->stack_info.size -= MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
75 thread->stack_info.start += FP_GUARD_EXTRA_SIZE; in arch_new_thread()
76 thread->stack_info.size -= FP_GUARD_EXTRA_SIZE; in arch_new_thread()
163 thread->stack_info.start += in z_arm_thread_stack_info_adjust()
165 thread->stack_info.size -= in z_arm_thread_stack_info_adjust()
184 thread->stack_info.start -= in z_arm_thread_stack_info_adjust()
186 thread->stack_info.size += in z_arm_thread_stack_info_adjust()
212 _current->stack_info.start -= FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
213 _current->stack_info.size += FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
[all …]
/Zephyr-latest/arch/arm/core/cortex_m/
Dthread.c71 thread->stack_info.start += MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
72 thread->stack_info.size -= MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
82 thread->stack_info.start += FP_GUARD_EXTRA_SIZE; in arch_new_thread()
83 thread->stack_info.size -= FP_GUARD_EXTRA_SIZE; in arch_new_thread()
148 thread->stack_info.start += FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
149 thread->stack_info.size -= FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
165 thread->stack_info.start -= FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
166 thread->stack_info.size += FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
230 _current->stack_info.start -= FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
231 _current->stack_info.size += FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
[all …]
/Zephyr-latest/arch/x86/core/
Duserspace.c78 (struct z_x86_thread_stack_header *)thread->stack_info.mapped.addr; in z_x86_userspace_prepare_thread()
135 stack_end = Z_STACK_PTR_ALIGN(_current->stack_info.start + in arch_user_mode_enter()
136 _current->stack_info.size - in arch_user_mode_enter()
137 _current->stack_info.delta); in arch_user_mode_enter()
167 stack_size = K_THREAD_STACK_LEN(_current->stack_info.size); in arch_user_mode_enter()
185 _current->stack_info.start); in arch_user_mode_enter()
Dfatal.c75 start = _current->stack_info.start - CONFIG_PRIVILEGED_STACK_SIZE; in z_x86_check_stack_bounds()
76 end = _current->stack_info.start; in z_x86_check_stack_bounds()
80 start = _current->stack_info.start; in z_x86_check_stack_bounds()
81 end = Z_STACK_PTR_ALIGN(_current->stack_info.start + in z_x86_check_stack_bounds()
82 _current->stack_info.size); in z_x86_check_stack_bounds()
104 start = (uintptr_t)thread->stack_info.mapped.addr - CONFIG_MMU_PAGE_SIZE; in z_x86_check_guard_page()
105 end = (uintptr_t)thread->stack_info.mapped.addr; in z_x86_check_guard_page()
112 start = (uintptr_t)thread->stack_info.mapped.addr + thread->stack_info.mapped.sz; in z_x86_check_guard_page()
/Zephyr-latest/tests/arch/arm/arm_thread_swap/src/
Darm_syscalls.c82 zassert_true(((__get_PSP() >= _current->stack_info.start) && in arm_isr_handler()
83 (__get_PSP() < (_current->stack_info.start + _current->stack_info.size))), in arm_isr_handler()
165 zassert_true(((__get_PSP() >= _current->stack_info.start) && in ZTEST()
166 (__get_PSP() < (_current->stack_info.start + _current->stack_info.size))), in ZTEST()
170 zassert_true(__get_PSPLIM() == _current->stack_info.start, in ZTEST()
/Zephyr-latest/subsys/profiling/perf/backends/
Dperf_x86_64.c12 return current->stack_info.start <= addr && in valid_stack()
13 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
Dperf_x86.c12 return current->stack_info.start <= addr && in valid_stack()
13 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
Dperf_riscv.c11 return current->stack_info.start <= addr && in valid_stack()
12 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
/Zephyr-latest/arch/xtensa/include/
Dkernel_arch_func.h48 size_t ostack = old_thread->stack_info.start; in arch_cohere_stacks()
49 size_t osz = old_thread->stack_info.size; in arch_cohere_stacks()
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()
/Zephyr-latest/subsys/tracing/sysview/
Dsysview_config.c44 Info.StackBase = thread->stack_info.size; in sys_trace_thread_info()
45 Info.StackSize = thread->stack_info.start; in sys_trace_thread_info()
74 .StackSize = thread->stack_info.size, in send_task_list_cb()
75 .StackBase = thread->stack_info.start, in send_task_list_cb()
/Zephyr-latest/arch/riscv/core/
Dfatal.c168 sp >= _current->stack_info.start - K_THREAD_STACK_RESERVED && in bad_stack_pointer()
169 sp < _current->stack_info.start - K_THREAD_STACK_RESERVED in bad_stack_pointer()
176 if (sp >= _current->stack_info.start - K_KERNEL_STACK_RESERVED && in bad_stack_pointer()
177 sp < _current->stack_info.start - K_KERNEL_STACK_RESERVED in bad_stack_pointer()
194 (esf->sp < _current->stack_info.start || in bad_stack_pointer()
195 esf->sp > _current->stack_info.start + in bad_stack_pointer()
196 _current->stack_info.size - in bad_stack_pointer()
197 _current->stack_info.delta)) { in bad_stack_pointer()
Dthread.c147 _current->stack_info.start -= K_THREAD_STACK_RESERVED; in arch_user_mode_enter()
148 _current->stack_info.size += K_THREAD_STACK_RESERVED; in arch_user_mode_enter()
163 _current->stack_info.start + in arch_user_mode_enter()
164 _current->stack_info.size - in arch_user_mode_enter()
165 _current->stack_info.delta); in arch_user_mode_enter()
Dstacktrace.c43 start = thread->stack_info.start; in in_kernel_thread_stack_bound()
44 end = Z_STACK_PTR_ALIGN(thread->stack_info.start + thread->stack_info.size); in in_kernel_thread_stack_bound()
64 start = thread->stack_info.start - CONFIG_PRIVILEGED_STACK_SIZE; in in_user_thread_stack_bound()
/Zephyr-latest/arch/arc/core/
Dthread.c79 thread->arch.u_stack_top = thread->stack_info.start; in setup_stack_vars()
80 thread->arch.u_stack_base = (thread->stack_info.start + in setup_stack_vars()
81 thread->stack_info.size); in setup_stack_vars()
85 thread->arch.k_stack_top = (uint32_t)thread->stack_info.start; in setup_stack_vars()
86 thread->arch.k_stack_base = (uint32_t)(thread->stack_info.start + in setup_stack_vars()
87 thread->stack_info.size); in setup_stack_vars()
237 (uint32_t)_current->stack_info.start, in arch_user_mode_enter()
238 (_current->stack_info.size - in arch_user_mode_enter()
239 _current->stack_info.delta), _current); in arch_user_mode_enter()
/Zephyr-latest/tests/kernel/mem_protect/stackprot/src/
Dmapped_stack.c74 zassert_true(mapped_thread_data.stack_info.mapped.addr != NULL); in create_thread()
79 mapped_stack_addr = (void *)mapped_thread_data.stack_info.mapped.addr; in create_thread()
80 mapped_stack_sz = mapped_thread_data.stack_info.mapped.sz; in create_thread()
/Zephyr-latest/arch/xtensa/core/
Dmpu.c911 uintptr_t stack_end_addr = thread->stack_info.start + thread->stack_info.size; in arch_mem_domain_thread_add()
913 if (stack_end_addr < thread->stack_info.start) { in arch_mem_domain_thread_add()
926 thread->stack_info.start, stack_end_addr, in arch_mem_domain_thread_add()
949 thread->stack_info.start, stack_end_addr, in arch_mem_domain_thread_add()
988 stack_end_addr = thread->stack_info.start + thread->stack_info.size; in arch_mem_domain_thread_remove()
989 if (stack_end_addr < thread->stack_info.start) { in arch_mem_domain_thread_remove()
999 thread->stack_info.start, stack_end_addr, in arch_mem_domain_thread_remove()
1174 uintptr_t stack_end_addr = thread->stack_info.start + thread->stack_info.size; in xtensa_user_stack_perms()
1176 if (stack_end_addr < thread->stack_info.start) { in xtensa_user_stack_perms()
1181 (void)memset((void *)thread->stack_info.start, in xtensa_user_stack_perms()
[all …]
Dthread.c165 stack_end = Z_STACK_PTR_ALIGN(current->stack_info.start + in arch_user_mode_enter()
166 current->stack_info.size - in arch_user_mode_enter()
167 current->stack_info.delta); in arch_user_mode_enter()
170 stack_end, current->stack_info.start); in arch_user_mode_enter()
Dvector_handlers.c85 end = Z_STACK_PTR_ALIGN(thread->stack_info.start + thread->stack_info.size); in xtensa_is_outside_stack_bounds()
92 start = thread->stack_info.start - CONFIG_PRIVILEGED_STACK_SIZE; in xtensa_is_outside_stack_bounds()
93 end = thread->stack_info.start; in xtensa_is_outside_stack_bounds()
96 start = thread->stack_info.start; in xtensa_is_outside_stack_bounds()
97 end = Z_STACK_PTR_ALIGN(thread->stack_info.start + thread->stack_info.size); in xtensa_is_outside_stack_bounds()
Dptables.c934 (void)memset((void *)thread->stack_info.start, in xtensa_user_stack_perms()
936 thread->stack_info.size - thread->stack_info.delta); in xtensa_user_stack_perms()
939 thread->stack_info.start, thread->stack_info.size, in xtensa_user_stack_perms()
989 thread->stack_info.start, thread->stack_info.size, in arch_mem_domain_thread_add()
997 thread->stack_info.start, in arch_mem_domain_thread_add()
998 thread->stack_info.size, 0); in arch_mem_domain_thread_add()
1049 thread->stack_info.start, in arch_mem_domain_thread_remove()
1050 thread->stack_info.size, OPTION_NO_TLB_IPI); in arch_mem_domain_thread_remove()
/Zephyr-latest/kernel/
Dthread.c341 stack = (uint32_t *)_current->stack_info.start; in z_check_stack_sentinel()
444 new_thread->stack_info.mapped.addr = stack_mapped; in setup_thread_stack()
445 new_thread->stack_info.mapped.sz = stack_obj_size; in setup_thread_stack()
495 new_thread->stack_info.start = (uintptr_t)stack_buf_start; in setup_thread_stack()
496 new_thread->stack_info.size = stack_buf_size; in setup_thread_stack()
497 new_thread->stack_info.delta = delta; in setup_thread_stack()
791 (char *)(_current->stack_info.start + in k_thread_user_mode_enter()
792 _current->stack_info.size)); in k_thread_user_mode_enter()
861 if (thread->stack_info.mapped.addr == NULL) { in z_impl_k_thread_stack_space_get()
866 return z_stack_space_get((const uint8_t *)thread->stack_info.start, in z_impl_k_thread_stack_space_get()
[all …]
Ddynamic.c109 if (data->stack == (k_thread_stack_t *)thread->stack_info.start) { in dyn_cb()
111 (void *)thread->stack_info.start); in dyn_cb()
/Zephyr-latest/arch/arm64/core/
Dthread.c165 stack_el0 = Z_STACK_PTR_ALIGN(_current->stack_info.start + in arch_user_mode_enter()
166 _current->stack_info.size - in arch_user_mode_enter()
167 _current->stack_info.delta); in arch_user_mode_enter()
/Zephyr-latest/subsys/debug/coredump/
Dcoredump_core.c89 end_addr = thread->stack_info.start + thread->stack_info.size; in dump_thread()
91 coredump_memory_dump(thread->stack_info.start, end_addr); in dump_thread()
/Zephyr-latest/arch/arm/core/mpu/
Darm_core_mpu.c251 size_t size = thread->stack_info.size + in z_arm_configure_dynamic_mpu_regions()
252 (thread->stack_info.start - base); in z_arm_configure_dynamic_mpu_regions()
296 guard_start = thread->stack_info.start - guard_size; in z_arm_configure_dynamic_mpu_regions()
/Zephyr-latest/include/zephyr/debug/
Dstack.h22 size_t unused, size = thread->stack_info.size; in log_stack_usage()

12