Mercurial > ecos
comparison packages/kernel/current/tests/stress_threads.c @ 157:b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
| author | jlarmour |
|---|---|
| date | Fri, 06 Apr 2001 19:06:06 +0000 |
| parents | 25e238959bae |
| children | ac086aa3217e |
comparison
equal
deleted
inserted
replaced
| 156:b939e9cada46 | 157:b65ec671dd4c |
|---|---|
| 87 #define STACK_SIZE (2*1024 + CYGNUM_HAL_STACK_SIZE_TYPICAL) | 87 #define STACK_SIZE (2*1024 + CYGNUM_HAL_STACK_SIZE_TYPICAL) |
| 88 #define STACK_SIZE_HANDLER (STACK_SIZE + 30*CYGNUM_HAL_STACK_FRAME_SIZE) | 88 #define STACK_SIZE_HANDLER (STACK_SIZE + 30*CYGNUM_HAL_STACK_FRAME_SIZE) |
| 89 | 89 |
| 90 #define N_MAIN 1 | 90 #define N_MAIN 1 |
| 91 | 91 |
| 92 // If we have instrumentation enabled, make the execution time in the | |
| 93 // simulator even shorter that we were going to anyway. | |
| 94 #ifdef CYGPKG_KERNEL_INSTRUMENT | |
| 95 #define SIM_DELAY_DIVISOR 100 | |
| 96 #else | |
| 97 #define SIM_DELAY_DIVISOR 10 | |
| 98 #endif | |
| 99 | |
| 92 //----------------------------------------------------------------------- | 100 //----------------------------------------------------------------------- |
| 93 // Some targets need to define a smaller number of handlers due to | 101 // Some targets need to define a smaller number of handlers due to |
| 94 // memory restrictions. | 102 // memory restrictions. |
| 95 #if defined(CYGMEM_REGION_ram_SIZE) && (CYGMEM_REGION_ram_SIZE < 0x80000) | 103 #if defined(CYGMEM_REGION_ram_SIZE) && (CYGMEM_REGION_ram_SIZE < 0x80000) |
| 96 #define MAX_HANDLERS 4 | 104 #define MAX_HANDLERS 4 |
| 655 cyg_tick_count_t tick_delay; | 663 cyg_tick_count_t tick_delay; |
| 656 tick_delay = (long long) | 664 tick_delay = (long long) |
| 657 ((1000000000.0*rtc_res.divisor) | 665 ((1000000000.0*rtc_res.divisor) |
| 658 *((double)DEATH_TIME_LIMIT)/((double)rtc_res.dividend)); | 666 *((double)DEATH_TIME_LIMIT)/((double)rtc_res.dividend)); |
| 659 if ( cyg_test_is_simulator ) | 667 if ( cyg_test_is_simulator ) |
| 660 tick_delay /= 10; | 668 tick_delay /= SIM_DELAY_DIVISOR; |
| 661 #ifdef CYGPKG_HAL_I386_LINUX | 669 #ifdef CYGPKG_HAL_I386_LINUX |
| 662 // 20 seconds is a long time compared to the run time of other tests. | 670 // 20 seconds is a long time compared to the run time of other tests. |
| 663 // Reduce to 10 seconds, allowing more tests to get run. | 671 // Reduce to 10 seconds, allowing more tests to get run. |
| 664 tick_delay /= 2; | 672 tick_delay /= 2; |
| 665 #endif | 673 #endif |
