mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
kernel: move Z_KERNEL_STACK_LEN higher in thread_stack.h
Moves Z_KERNEL_STACK_LEN() higher in the header file so it is near the other stack size calculation macros. Also, it was actually declared after it is first used in the header. So this seems a logical move. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
@@ -104,6 +104,9 @@ static inline char *z_stack_ptr_align(char *ptr)
|
||||
#define Z_KERNEL_STACK_OBJ_ALIGN ARCH_STACK_PTR_ALIGN
|
||||
#endif
|
||||
|
||||
#define Z_KERNEL_STACK_LEN(size) \
|
||||
ROUND_UP(Z_KERNEL_STACK_SIZE_ADJUST(size), Z_KERNEL_STACK_OBJ_ALIGN)
|
||||
|
||||
/**
|
||||
* @brief Obtain an extern reference to a stack
|
||||
*
|
||||
@@ -204,9 +207,6 @@ static inline char *z_stack_ptr_align(char *ptr)
|
||||
Z_KERNEL_STACK_DEFINE_IN(sym, size, __kstackmem)
|
||||
#endif
|
||||
|
||||
#define Z_KERNEL_STACK_LEN(size) \
|
||||
ROUND_UP(Z_KERNEL_STACK_SIZE_ADJUST(size), Z_KERNEL_STACK_OBJ_ALIGN)
|
||||
|
||||
/**
|
||||
* @def K_KERNEL_STACK_ARRAY_DEFINE
|
||||
* @brief Define a toplevel array of kernel stack memory regions
|
||||
|
||||
Reference in New Issue
Block a user