Mercurial > ecos-v3_0-branch
diff packages/kernel/current/tests/fptest.c @ 2127:0e1e2bf4be93
* tests/timeslice.c (STACK_SIZE): Reduce the stack size so it will
compile on targets wit h only small amounts of RAM.
* tests/fptest.c: Calculate the size of ftp2_values array to fit
the amount of RAM in small systems.
* tests/clocktruth.cxx: Fix the header.
| author | asl |
|---|---|
| date | Tue, 14 Feb 2006 19:10:06 +0000 |
| parents | df01feb2f050 |
| children | 74dbf4c3f2e1 |
line wrap: on
line diff
--- a/packages/kernel/current/tests/fptest.c +++ b/packages/kernel/current/tests/fptest.c @@ -61,7 +61,7 @@ #include <cyg/infra/diag.h> //#include <cyg/kernel/test/stackmon.h> -//#include CYGHWR_MEMORY_LAYOUT_H +#include CYGHWR_MEMORY_LAYOUT_H //========================================================================== @@ -243,8 +243,11 @@ void fptest1( CYG_ADDRWORD id ) } //========================================================================== - +#if (CYGMEM_REGION_ram_SIZE / 8 / 2) < 10000 +#define FP2_COUNT (CYGMEM_REGION_ram_SIZE / 8 / 2) +#else #define FP2_COUNT 10000 +#endif static double fpt2_values[FP2_COUNT];
