Home
last modified time | relevance | path

Searched refs:K_THREAD_STACK_RESERVED (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.7.0/include/zephyr/kernel/
Dthread_stack.h291 #define K_THREAD_STACK_RESERVED K_KERNEL_STACK_RESERVED macro
320 #define K_THREAD_STACK_RESERVED ((size_t)(ARCH_THREAD_STACK_RESERVED)) macro
322 #define K_THREAD_STACK_RESERVED ((size_t)0U) macro
385 ARCH_THREAD_STACK_SIZE_ADJUST((size) + K_THREAD_STACK_RESERVED)
388 (ROUND_UP((size), ARCH_STACK_PTR_ALIGN) + K_THREAD_STACK_RESERVED)
437 #define K_THREAD_STACK_SIZEOF(sym) (sizeof(sym) - K_THREAD_STACK_RESERVED)
655 return (char *)sym + K_THREAD_STACK_RESERVED; in K_THREAD_STACK_BUFFER()
/Zephyr-Core-3.7.0/arch/riscv/core/
Dthread.c138 _current->stack_info.start -= K_THREAD_STACK_RESERVED; in arch_user_mode_enter()
139 _current->stack_info.size += K_THREAD_STACK_RESERVED; in arch_user_mode_enter()
Dfatal.c164 sp >= _current->stack_info.start - K_THREAD_STACK_RESERVED && in bad_stack_pointer()
165 sp < _current->stack_info.start - K_THREAD_STACK_RESERVED in bad_stack_pointer()
Dpmp.c473 stack_bottom = thread->stack_info.start - K_THREAD_STACK_RESERVED; in z_riscv_pmp_stackguard_prepare()
/Zephyr-Core-3.7.0/tests/kernel/threads/thread_stack/src/
Dmain.c128 reserved = K_THREAD_STACK_RESERVED; in stack_buffer_scenarios()
216 K_THREAD_STACK_RESERVED != 0) { in stack_buffer_scenarios()
419 K_THREAD_STACK_RESERVED); in ZTEST()
/Zephyr-Core-3.7.0/kernel/
Dthread.c403 stack_buf_size = stack_obj_size - K_THREAD_STACK_RESERVED; in setup_thread_stack()
705 K_OOPS(K_SYSCALL_VERIFY_MSG(!size_add_overflow(K_THREAD_STACK_RESERVED, in z_vrfy_k_thread_create()
709 K_THREAD_STACK_RESERVED)); in z_vrfy_k_thread_create()
/Zephyr-Core-3.7.0/doc/hardware/porting/
Darch.rst692 for threads stacks defined by :c:macro:`K_THREAD_STACK_RESERVED` may be used to
706 | Stack buffer | K_THREAD_STACK_RESERVED =
745 :c:macro:`Z_POW2_CEIL()`. :c:macro:`K_THREAD_STACK_RESERVED` must be 0.