Mercurial > ecos
changeset 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 | 0141a9e24d21 |
| children | 06a1f8221912 |
| files | packages/kernel/current/ChangeLog packages/kernel/current/tests/clocktruth.cxx packages/kernel/current/tests/fptest.c packages/kernel/current/tests/timeslice.c |
| diffstat | 4 files changed, 15 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,11 @@ +2006-02-14 Andrew Lunn <andrew.lunn@ascom.ch> + + * 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. + 2006-01-19 Nick Garnett <nickg@ecoscentric.com> * src/sched/sched.cxx (thread_entry): Fixed a bug which could
--- a/packages/kernel/current/tests/clocktruth.cxx +++ b/packages/kernel/current/tests/clocktruth.cxx @@ -2,7 +2,7 @@ // // clocktruth.cxx // -// Clock Converter test +// Clock accuracy test // //========================================================================== //####ECOSGPLCOPYRIGHTBEGIN####
--- 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];
--- a/packages/kernel/current/tests/timeslice.c +++ b/packages/kernel/current/tests/timeslice.c @@ -71,7 +71,7 @@ //========================================================================== -#define STACK_SIZE CYGNUM_HAL_STACK_SIZE_TYPICAL*5 +#define STACK_SIZE CYGNUM_HAL_STACK_SIZE_TYPICAL #define NTHREADS_MAX (CYGNUM_KERNEL_CPU_MAX*6)
