comparison packages/kernel/current/tests/tm_basic.cxx @ 66:bf00f99aec69 ecos-sw-2000-02-02

Merge from eCos master repository on 2000-02-02-19:16:44-GMT
author jlarmour
date Wed, 02 Feb 2000 19:57:02 +0000
parents c38311975d4f
children 435cced73e2f
comparison
equal deleted inserted replaced
65:b4822dd69c33 66:bf00f99aec69
7 //========================================================================== 7 //==========================================================================
8 //####COPYRIGHTBEGIN#### 8 //####COPYRIGHTBEGIN####
9 // 9 //
10 // ------------------------------------------- 10 // -------------------------------------------
11 // The contents of this file are subject to the Red Hat eCos Public License 11 // The contents of this file are subject to the Red Hat eCos Public License
12 // Version 1.0 (the "License"); you may not use this file except in 12 // Version 1.1 (the "License"); you may not use this file except in
13 // compliance with the License. You may obtain a copy of the License at 13 // compliance with the License. You may obtain a copy of the License at
14 // http://sourceware.cygnus.com/ecos 14 // http://www.redhat.com/
15 // 15 //
16 // Software distributed under the License is distributed on an 16 // Software distributed under the License is distributed on an "AS IS"
17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
18 // License for the specific language governing rights and limitations under 18 // License for the specific language governing rights and limitations under
19 // the License. 19 // the License.
20 // 20 //
21 // The Original Code is eCos - Embedded Configurable Operating System, 21 // The Original Code is eCos - Embedded Configurable Operating System,
76 76
77 #define STACK_SIZE CYGNUM_HAL_STACK_SIZE_MINIMUM 77 #define STACK_SIZE CYGNUM_HAL_STACK_SIZE_MINIMUM
78 78
79 #ifdef CYGMEM_REGION_ram_SIZE 79 #ifdef CYGMEM_REGION_ram_SIZE
80 #define CYG_THREAD_OVERHEAD (STACK_SIZE+sizeof(cyg_thread)+(sizeof(fun_times)*2)) 80 #define CYG_THREAD_OVERHEAD (STACK_SIZE+sizeof(cyg_thread)+(sizeof(fun_times)*2))
81 #define NTEST_THREADS ((CYGMEM_REGION_ram_SIZE/8)/CYG_THREAD_OVERHEAD) 81 #define NTEST_THREADS ((CYGMEM_REGION_ram_SIZE/16)/CYG_THREAD_OVERHEAD)
82 #define CYG_MUTEX_OVERHEAD (sizeof(cyg_mutex_t)+sizeof(fun_times)) 82 #define CYG_MUTEX_OVERHEAD (sizeof(cyg_mutex_t)+sizeof(fun_times))
83 #define NMUTEXES ((CYGMEM_REGION_ram_SIZE/16)/CYG_MUTEX_OVERHEAD) 83 #define NMUTEXES ((CYGMEM_REGION_ram_SIZE/16)/CYG_MUTEX_OVERHEAD)
84 #define CYG_MBOX_OVERHEAD (sizeof(cyg_mbox)+sizeof(fun_times)) 84 #define CYG_MBOX_OVERHEAD (sizeof(cyg_mbox)+sizeof(fun_times))
85 #define NMBOXES ((CYGMEM_REGION_ram_SIZE/16)/CYG_MBOX_OVERHEAD) 85 #define NMBOXES ((CYGMEM_REGION_ram_SIZE/24)/CYG_MBOX_OVERHEAD)
86 #define CYG_SEMAPHORE_OVERHEAD (sizeof(cyg_sem_t)+sizeof(fun_times)) 86 #define CYG_SEMAPHORE_OVERHEAD (sizeof(cyg_sem_t)+sizeof(fun_times))
87 #define NSEMAPHORES ((CYGMEM_REGION_ram_SIZE/16)/CYG_SEMAPHORE_OVERHEAD) 87 #define NSEMAPHORES ((CYGMEM_REGION_ram_SIZE/16)/CYG_SEMAPHORE_OVERHEAD)
88 #define CYG_COUNTER_OVERHEAD (sizeof(cyg_counter)+sizeof(fun_times)) 88 #define CYG_COUNTER_OVERHEAD (sizeof(cyg_counter)+sizeof(fun_times))
89 #define NCOUNTERS ((CYGMEM_REGION_ram_SIZE/16)/CYG_COUNTER_OVERHEAD) 89 #define NCOUNTERS ((CYGMEM_REGION_ram_SIZE/24)/CYG_COUNTER_OVERHEAD)
90 #define CYG_ALARM_OVERHEAD (sizeof(cyg_alarm)+sizeof(fun_times)) 90 #define CYG_ALARM_OVERHEAD (sizeof(cyg_alarm)+sizeof(fun_times))
91 #define NALARMS ((CYGMEM_REGION_ram_SIZE/16)/CYG_ALARM_OVERHEAD) 91 #define NALARMS ((CYGMEM_REGION_ram_SIZE/16)/CYG_ALARM_OVERHEAD)
92 #else 92 #else
93 // Defaults 93 // Defaults
94 #define NTEST_THREADS 16 94 #define NTEST_THREADS 16
1717 1717
1718 externC void 1718 externC void
1719 cyg_start( void ) 1719 cyg_start( void )
1720 { 1720 {
1721 CYG_TEST_INIT(); 1721 CYG_TEST_INIT();
1722 CYG_TEST_PASS_FINISH("Timing tests require:\n" 1722 CYG_TEST_NA("Timing tests require:\n"
1723 "CYGFUN_KERNEL_API_C && \n" 1723 "CYGFUN_KERNEL_API_C && \n"
1724 "CYGSEM_KERNEL_SCHED_MLQUEUE &&\n" 1724 "CYGSEM_KERNEL_SCHED_MLQUEUE &&\n"
1725 "CYGVAR_KERNEL_COUNTERS_CLOCK &&\n" 1725 "CYGVAR_KERNEL_COUNTERS_CLOCK &&\n"
1726 "!CYGPKG_HAL_I386_LINUX &&\n" 1726 "!CYGPKG_HAL_I386_LINUX &&\n"
1727 "(CYGNUM_KERNEL_SCHED_PRIORITIES > 12)\n"); 1727 "(CYGNUM_KERNEL_SCHED_PRIORITIES > 12)\n");
1728 } 1728 }
1729 #endif // CYGFUN_KERNEL_API_C, etc. 1729 #endif // CYGFUN_KERNEL_API_C, etc.
1730 1730
1731 // EOF tm_basic.cxx 1731 // EOF tm_basic.cxx