Skip to content

Commit 6d9af83

Browse files
carlocaionenashif
authored andcommitted
samples: philosophers: Introduce CONFIG_TEST_EXTRA_STACKSIZE
Some architectures require more space on the stack when running samples and tests. Use the CONFIG_TEST_EXTRA_STACKSIZE also on the philosophers sample to deal with such cases. Signed-off-by: Carlo Caione <[email protected]>
1 parent 3a00d0c commit 6d9af83

File tree

1 file changed

+1
-1
lines changed
  • samples/philosophers/src

1 file changed

+1
-1
lines changed

samples/philosophers/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
/* end - control behaviour of the demo */
8484
/***************************************/
8585

86-
#define STACK_SIZE 768
86+
#define STACK_SIZE (768 + CONFIG_TEST_EXTRA_STACKSIZE)
8787

8888
#include "phil_obj_abstract.h"
8989

0 commit comments

Comments
 (0)