Lines Matching +full:memory +full:- +full:alignment

4  * SPDX-License-Identifier: Apache-2.0
63 * to the CPU and ABI requirements. This is not used for any memory protection
79 * all the data members that are pre-populated in arch_new_thread().
89 (type *)((ptr) - sizeof(type))
122 * @param size Size of the stack memory region
136 * @param size Size of the stack memory region
150 * @param size Size of the stack memory region
157 * @brief Define a toplevel kernel stack memory region in specified section
159 * This defines a region of memory for use as a thread stack in
168 * The total amount of memory allocated may be increased to accommodate
169 * fixed-size stack overflow guards.
172 * @param size Size of the stack memory region
181 * @brief Define a toplevel array of kernel stack memory regions in specified section
185 * @param size Size of the stack memory region
194 * @brief Define a toplevel kernel stack memory region
196 * This defines a region of memory for use as a thread stack, for threads
208 * The total amount of memory allocated may be increased to accommodate
209 * fixed-size stack overflow guards.
212 * @param size Size of the stack memory region
218 * @brief Define a toplevel kernel stack memory region in pinned section
227 * @param size Size of the stack memory region
238 * @brief Define a toplevel array of kernel stack memory regions
244 * @param size Size of the stack memory region
250 * @brief Define a toplevel array of kernel stack memory regions in pinned section
260 * @param size Size of the stack memory region
271 * @brief Define an embedded stack memory region
277 * @param size Size of the stack memory region
282 #define K_KERNEL_STACK_SIZEOF(sym) (sizeof(sym) - K_KERNEL_STACK_RESERVED)
304 * @brief Indicate how much additional memory is reserved for stack objects
306 * Any given stack declaration may have additional memory in it for guard
307 * areas, supervisor mode stacks, or platform-specific data. This macro
310 * This value only indicates memory that is permanently reserved in the stack
311 * object. Memory that is "borrowed" from the thread's stack buffer is never
314 * Reserved memory is at the beginning of the stack object. The reserved area
327 * Return an alignment value for the lowest address of a stack object, taking
328 * into consideration all alignment constraints imposed by the CPU, ABI, and
329 * any memory management policies, including any alignment required by
337 * If CONFIG_USERSPACE is enabled, this determines the alignment of stacks
347 * @return Alignment of the stack object
362 * - Reserved memory for platform data
363 * - Alignment of stack buffer bounds to CPU/ABI constraints
364 * - Alignment of stack buffer bounds to satisfy memory management hardware
376 * Any memory reserved for platform data is also included in the total
402 * @param size Size of the stack memory region
416 * @param size Size of the stack memory region
423 * @brief Return the size in bytes of a stack memory region
433 * @param sym Stack memory symbol
436 #define K_THREAD_STACK_SIZEOF(sym) (sizeof(sym) - K_THREAD_STACK_RESERVED)
439 * @brief Define a toplevel thread stack memory region in specified region
441 * This defines a region of memory suitable for use as a thread's stack
449 * inside needs to be examined, examine thread->stack_info for the associated
459 * alignment constraints. K_THREAD_STACK_SIZEOF() will return the aligned
463 * @param size Size of the stack memory region
472 * @brief Define a toplevel array of thread stack memory regions in specified region
482 * @param size Size of the stack memory region
491 * @brief Define a toplevel thread stack memory region
493 * This defines a region of memory suitable for use as a thread's stack.
500 * inside needs to be examined, examine thread->stack_info for the associated
510 * alignment constraints. K_THREAD_STACK_SIZEOF() will return the aligned
514 * @param size Size of the stack memory region
520 * @brief Define a toplevel thread stack memory region in pinned section
522 * This defines a region of memory suitable for use as a thread's stack.
529 * inside needs to be examined, examine thread->stack_info for the associated
539 * alignment constraints. K_THREAD_STACK_SIZEOF() will return the aligned
547 * @param size Size of the stack memory region
565 * required stack base alignment.
567 * @param size Size of the stack memory region
575 * @brief Define a toplevel array of thread stack memory regions
585 * @param size Size of the stack memory region
591 * @brief Define a toplevel array of thread stack memory regions in pinned section
605 * @param size Size of the stack memory region
620 * Obtain a pointer to the non-reserved area of a stack object.
621 * This is not guaranteed to be the beginning of the thread-writable region;
622 * this does not account for any memory carved-out for MPU stack overflow