tests: kernel: test-fifo: reduce ram requirements
Reduces the amount of memory allocated for fiber's stack. This permits the test_nano to compile on boards like nucleo-f103rb and arduino 101 sss. Sanitycheck script passes all test for test-fifo. This patch was verified on the emulated platforms and not against real hardware boards. Change-Id: Icf30c4056d9f9ebdc82c100305bf761e49b64491 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
3f9d4752c6
commit
560e6a3cf4
@ -1,5 +1,4 @@
|
||||
ccflags-y += -I${srctree}/tests/include
|
||||
ccflags-$(CONFIG_SOC_QUARK_D2000) += -DFIBER_STACKSIZE=256
|
||||
|
||||
obj-$(CONFIG_MICROKERNEL) = micro_fifo.o
|
||||
obj-$(CONFIG_NANOKERNEL) = nano_fifo.o fifo_timeout.o
|
||||
|
||||
@ -38,9 +38,7 @@
|
||||
#include <tc_nano_timeout_common.h>
|
||||
|
||||
#define FIBER_PRIORITY 5
|
||||
#ifndef FIBER_STACKSIZE
|
||||
#define FIBER_STACKSIZE 2048
|
||||
#endif
|
||||
#define FIBER_STACKSIZE 256
|
||||
|
||||
struct scratch_fifo_packet {
|
||||
void *link_in_fifo;
|
||||
|
||||
@ -58,11 +58,9 @@
|
||||
|
||||
#include <util_test_common.h>
|
||||
|
||||
#ifndef FIBER_STACKSIZE
|
||||
#define FIBER_STACKSIZE 2048
|
||||
#endif
|
||||
#define NUM_FIFO_ELEMENT 4
|
||||
#define INVALID_DATA NULL
|
||||
#define FIBER_STACKSIZE 256
|
||||
#define NUM_FIFO_ELEMENT 4
|
||||
#define INVALID_DATA NULL
|
||||
|
||||
#define TCERR1(count) TC_ERROR("Didn't get back correct FIFO, count %d\n", count)
|
||||
#define TCERR2 TC_ERROR("Didn't get back correct FIFO\n")
|
||||
|
||||
@ -7,5 +7,3 @@ kernel = micro
|
||||
extra_args = KERNEL_TYPE=nano
|
||||
tags = core
|
||||
kernel = nano
|
||||
# Not enough SRAM to run this test on quark SE
|
||||
config_whitelist = !CONFIG_SOC_QUARK_SE_SS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user