From ee587d08a8b8f7a379f963c251daf94a324583ee Mon Sep 17 00:00:00 2001 From: Yannis Damigos Date: Thu, 31 Mar 2016 10:57:33 +0300 Subject: [PATCH] tests: kernel: test_context: reduce ram requirements Reduces the amount of memory allocated for fiber's stack. This permits the test_context to compile on boards like nucleo-f103rb. Sanitycheck script passes all test for test-context. This patch was verified on the emulated platforms and not against real hardware boards. Change-Id: I219f63063ee2dca5b0326e25141d8b37f4cd1d74 Signed-off-by: Yannis Damigos --- tests/kernel/test_context/src/Makefile | 1 - tests/kernel/test_context/src/context.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/kernel/test_context/src/Makefile b/tests/kernel/test_context/src/Makefile index ac07c5812f..febc6913aa 100644 --- a/tests/kernel/test_context/src/Makefile +++ b/tests/kernel/test_context/src/Makefile @@ -1,4 +1,3 @@ ccflags-y += -I${srctree}/tests/include -ccflags-$(CONFIG_SOC_QUARK_D2000) += -DFIBER_STACKSIZE=256 obj-y = context.o diff --git a/tests/kernel/test_context/src/context.c b/tests/kernel/test_context/src/context.c index fe0e6afb2a..5731346329 100644 --- a/tests/kernel/test_context/src/context.c +++ b/tests/kernel/test_context/src/context.c @@ -41,9 +41,7 @@ This module tests the following CPU and thread related routines: #include #endif -#ifndef FIBER_STACKSIZE -#define FIBER_STACKSIZE 2000 -#endif +#define FIBER_STACKSIZE 256 #define FIBER_PRIORITY 4 #define THREAD_SELF_CMD 0