Additional macros may be defined in the architecture layer to specify the alignment of the base of stack objects, any reserved data inside the stack object not used for the thread’s stack buffer, and how to round up stack sizes to support user mode threads.
https://github.com/zephyrproject-rtos/zephyr/blob/main/doc/hardware/porting/arch.rst