Skip to content

Commit 00a8818

Browse files
Andrew Boienashif
authored andcommitted
arc: fix Z_ARCH_THREAD_STACK_MEMBER()
Unlike the others, this macro was not taking into account minimum MPU region sizes by filtering through STACK_SIZE_ALIGN(). Fixes: #15130 Signed-off-by: Andrew Boie <[email protected]>
1 parent 29095ac commit 00a8818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/arch/arc/arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ extern "C" {
105105
#define Z_ARCH_THREAD_STACK_MEMBER(sym, size) \
106106
struct _k_thread_stack_element \
107107
__aligned(POW2_CEIL(STACK_SIZE_ALIGN(size))) \
108-
sym[POW2_CEIL(size) + \
108+
sym[POW2_CEIL(STACK_SIZE_ALIGN(size)) + \
109109
+ STACK_GUARD_SIZE + CONFIG_PRIVILEGED_STACK_SIZE]
110110

111111
#elif CONFIG_ARC_MPU_VER == 3

0 commit comments

Comments
 (0)