Mercurial > nand-ecoscentric
diff packages/kernel/current/tests/kmutex4.c @ 3120:6724f8254bcb
* tests/bin_sem2.cxx (PHILOSOPHERS):
* tests/fptest.cx (TEST_NA):
* tests/kmutex3.c (NTHREADS):
* tests/kmutex4.c (NTHREADS):
* tests/mutex3.cxx (NTHREADS):
* tests/thread_gdb.c (NTHREADS):
* tests/timeslice.c (NTHREADS_MAX):
* tests/timeslice2.c (NTHREADS_MAX):
* tests/tm_basic.cxx (NTEST_THREADS): Given a chance to compile and
run more tests for low memory footprint targets. [ Bugzilla 1001253 ]
| author | sergeig |
|---|---|
| date | Sun, 10 Jul 2011 16:01:36 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
line wrap: on
line diff
--- a/packages/kernel/current/tests/kmutex4.c +++ b/packages/kernel/current/tests/kmutex4.c @@ -78,6 +78,7 @@ cyg_hal_invoke_constructors(); #include <cyg/infra/cyg_ass.h> #include <cyg/infra/cyg_trac.h> #include <cyg/infra/diag.h> // diag_printf +#include CYGHWR_MEMORY_LAYOUT_H // ------------------------------------------------------------------------ @@ -116,7 +117,11 @@ static char * protnames[] = { // // Translated into KAPI also. -#define NTHREADS 7 +#if (CYGMEM_REGION_ram_SIZE <= 32768) +# define NTHREADS 5 +#else +# define NTHREADS 7 +#endif #define STACKSIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
