Home
last modified time | relevance | path

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

123

/Zephyr-4.2.1/arch/arm/core/cortex_a_r/
Dthread.c93 thread->stack_info.start += MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
94 thread->stack_info.size -= MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
104 thread->stack_info.start += FP_GUARD_EXTRA_SIZE; in arch_new_thread()
105 thread->stack_info.size -= FP_GUARD_EXTRA_SIZE; in arch_new_thread()
193 thread->stack_info.start += in z_arm_thread_stack_info_adjust()
195 thread->stack_info.size -= in z_arm_thread_stack_info_adjust()
214 thread->stack_info.start -= in z_arm_thread_stack_info_adjust()
216 thread->stack_info.size += in z_arm_thread_stack_info_adjust()
240 _current->stack_info.start -= FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
241 _current->stack_info.size += FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
[all …]
/Zephyr-4.2.1/arch/arm/core/cortex_m/
Dthread.c101 thread->stack_info.start += MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
102 thread->stack_info.size -= MPU_GUARD_ALIGN_AND_SIZE; in arch_new_thread()
112 thread->stack_info.start += FP_GUARD_EXTRA_SIZE; in arch_new_thread()
113 thread->stack_info.size -= FP_GUARD_EXTRA_SIZE; in arch_new_thread()
185 thread->stack_info.start += FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
186 thread->stack_info.size -= FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
202 thread->stack_info.start -= FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
203 thread->stack_info.size += FP_GUARD_EXTRA_SIZE; in z_arm_thread_stack_info_adjust()
266 _current->stack_info.start -= FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
267 _current->stack_info.size += FP_GUARD_EXTRA_SIZE; in arch_user_mode_enter()
[all …]
/Zephyr-4.2.1/tests/arch/arm/arm_thread_swap/src/
Darm_syscalls.c84 zassert_true(((__get_PSP() >= _current->stack_info.start) && in arm_isr_handler()
85 (__get_PSP() < (_current->stack_info.start + _current->stack_info.size))), in arm_isr_handler()
170 zassert_true(((__get_PSP() >= _current->stack_info.start) && in ZTEST()
171 (__get_PSP() < (_current->stack_info.start + _current->stack_info.size))), in ZTEST()
175 zassert_true(__get_PSPLIM() == _current->stack_info.start, in ZTEST()
/Zephyr-4.2.1/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.c74 start = _current->stack_info.start - CONFIG_PRIVILEGED_STACK_SIZE; in z_x86_check_stack_bounds()
75 end = _current->stack_info.start; in z_x86_check_stack_bounds()
79 start = _current->stack_info.start; in z_x86_check_stack_bounds()
80 end = Z_STACK_PTR_ALIGN(_current->stack_info.start + in z_x86_check_stack_bounds()
81 _current->stack_info.size); in z_x86_check_stack_bounds()
103 start = (uintptr_t)thread->stack_info.mapped.addr - CONFIG_MMU_PAGE_SIZE; in z_x86_check_guard_page()
104 end = (uintptr_t)thread->stack_info.mapped.addr; in z_x86_check_guard_page()
111 start = (uintptr_t)thread->stack_info.mapped.addr + thread->stack_info.mapped.sz; in z_x86_check_guard_page()
Dx86_mmu.c1528 if (incoming->stack_info.start != current_stack_start || in z_x86_swap_update_common_page_table()
1529 incoming->stack_info.size != current_stack_size) { in z_x86_swap_update_common_page_table()
1535 apply_region(incoming->stack_info.start, in z_x86_swap_update_common_page_table()
1536 incoming->stack_info.size, in z_x86_swap_update_common_page_table()
1540 current_stack_start = incoming->stack_info.start; in z_x86_swap_update_common_page_table()
1541 current_stack_size = incoming->stack_info.size; in z_x86_swap_update_common_page_table()
1791 thread, ptables, thread->stack_info.start, in set_stack_perms()
1792 thread->stack_info.size); in set_stack_perms()
1793 apply_region(ptables, (void *)thread->stack_info.start, in set_stack_perms()
1794 thread->stack_info.size, in set_stack_perms()
[all …]
/Zephyr-4.2.1/subsys/profiling/perf/backends/
Dperf_x86_64.c13 return current->stack_info.start <= addr && in valid_stack()
14 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
Dperf_x86.c13 return current->stack_info.start <= addr && in valid_stack()
14 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
Dperf_riscv.c12 return current->stack_info.start <= addr && in valid_stack()
13 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
/Zephyr-4.2.1/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()
500 new_thread->stack_info.usage.unused_threshold = in setup_thread_stack()
735 unused_threshold = (thread->stack_info.size * pct) / 100; in z_impl_k_thread_runtime_stack_safety_unused_threshold_pct_set()
737 thread->stack_info.usage.unused_threshold = unused_threshold; in z_impl_k_thread_runtime_stack_safety_unused_threshold_pct_set()
745 if (threshold > thread->stack_info.size) { in z_impl_k_thread_runtime_stack_safety_unused_threshold_set()
[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-4.2.1/arch/riscv/core/
Dfatal.c165 sp >= _current->stack_info.start - K_THREAD_STACK_RESERVED && in bad_stack_pointer()
166 sp < _current->stack_info.start - K_THREAD_STACK_RESERVED in bad_stack_pointer()
173 if (sp >= _current->stack_info.start - K_KERNEL_STACK_RESERVED && in bad_stack_pointer()
174 sp < _current->stack_info.start - K_KERNEL_STACK_RESERVED in bad_stack_pointer()
191 (esf->sp < _current->stack_info.start || in bad_stack_pointer()
192 esf->sp > _current->stack_info.start + in bad_stack_pointer()
193 _current->stack_info.size - in bad_stack_pointer()
194 _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.c52 start = thread->stack_info.start; in in_kernel_thread_stack_bound()
53 end = Z_STACK_PTR_ALIGN(thread->stack_info.start + thread->stack_info.size); in in_kernel_thread_stack_bound()
74 start = thread->stack_info.start - CONFIG_PRIVILEGED_STACK_SIZE; in in_user_thread_stack_bound()
/Zephyr-4.2.1/subsys/tracing/sysview/
Dsysview_config.c48 Info.StackBase = thread->stack_info.size; in sys_trace_thread_info()
49 Info.StackSize = thread->stack_info.start; in sys_trace_thread_info()
99 .StackSize = thread->stack_info.size, in send_task_list_cb()
100 .StackBase = thread->stack_info.start, in send_task_list_cb()
/Zephyr-4.2.1/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-4.2.1/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-4.2.1/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.c230 stack_end = Z_STACK_PTR_ALIGN(current->stack_info.start + in arch_user_mode_enter()
231 current->stack_info.size - in arch_user_mode_enter()
232 current->stack_info.delta); in arch_user_mode_enter()
235 stack_end, current->stack_info.start); in arch_user_mode_enter()
Dvector_handlers.c88 end = Z_STACK_PTR_ALIGN(thread->stack_info.start + thread->stack_info.size); in xtensa_is_outside_stack_bounds()
95 start = thread->stack_info.start - CONFIG_PRIVILEGED_STACK_SIZE; in xtensa_is_outside_stack_bounds()
96 end = thread->stack_info.start; in xtensa_is_outside_stack_bounds()
99 start = thread->stack_info.start; in xtensa_is_outside_stack_bounds()
100 end = Z_STACK_PTR_ALIGN(thread->stack_info.start + thread->stack_info.size); in xtensa_is_outside_stack_bounds()
/Zephyr-4.2.1/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-4.2.1/arch/xtensa/include/
Dkernel_arch_func.h139 size_t ostack = old_thread->stack_info.start; in arch_cohere_stacks()
140 size_t oend = ostack + old_thread->stack_info.size; in arch_cohere_stacks()
143 size_t nstack = new_thread->stack_info.start; in arch_cohere_stacks()
144 size_t nend = nstack + new_thread->stack_info.size; in arch_cohere_stacks()
/Zephyr-4.2.1/include/zephyr/debug/
Dstack.h22 size_t unused, size = thread->stack_info.size; in log_stack_usage()
/Zephyr-4.2.1/arch/arm/core/mpu/
Darm_core_mpu.c277 size_t size = thread->stack_info.size + in z_arm_configure_dynamic_mpu_regions()
278 (thread->stack_info.start - base); in z_arm_configure_dynamic_mpu_regions()
322 guard_start = thread->stack_info.start - guard_size; in z_arm_configure_dynamic_mpu_regions()
/Zephyr-4.2.1/subsys/debug/coredump/
Dcoredump_core.c97 *start = thread->stack_info.start; in select_stack_region()
98 *end = thread->stack_info.start + thread->stack_info.size; in select_stack_region()

123