Skip to content
Commit db0d6aed authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

kernel: add stack object alignment macro interface



A new macro Z_THREAD_STACK_OBJ_ALIGN() defines the alignment
of the lowest memory address of a stack object.

Related is a new arch interface ARCH_THREAD_STACK_OBJ_ALIGN()
which lets arches specifiy this. ARCH_STACK_PTR_ALIGN or a
power-of-two ceiling is used if not defined.

The default stack macros now use this instead of hard-coding
ARCH_STACK_PTR_ALIGN.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 24825c86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment