comparison packages/kernel/current/tests/thread_gdb.c @ 2:443894e2e912 ecos-v1_2_1-release

Block commit of eCos version 1.2.1
author jlarmour
date Tue, 11 May 1999 12:24:34 +0000
parents 3111d98ba7b3
children c38311975d4f
comparison
equal deleted inserted replaced
1:72f549f0d891 2:443894e2e912
20 // 20 //
21 // The Original Code is eCos - Embedded Cygnus Operating System, released 21 // The Original Code is eCos - Embedded Cygnus Operating System, released
22 // September 30, 1998. 22 // September 30, 1998.
23 // 23 //
24 // The Initial Developer of the Original Code is Cygnus. Portions created 24 // The Initial Developer of the Original Code is Cygnus. Portions created
25 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. 25 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.
26 // ------------------------------------------- 26 // -------------------------------------------
27 // 27 //
28 //####COPYRIGHTEND#### 28 //####COPYRIGHTEND####
29 //========================================================================== 29 //==========================================================================
30 //#####DESCRIPTIONBEGIN#### 30 //#####DESCRIPTIONBEGIN####
40 40
41 #include <cyg/infra/cyg_ass.h> 41 #include <cyg/infra/cyg_ass.h>
42 42
43 #include <cyg/infra/testcase.h> 43 #include <cyg/infra/testcase.h>
44 44
45 #if defined(CYGFUN_KERNEL_API_C) && defined(CYGSEM_KERNEL_SCHED_MLQUEUE) 45 #if defined(CYGFUN_KERNEL_API_C) && defined(CYGSEM_KERNEL_SCHED_MLQUEUE) &&\
46 (CYGNUM_KERNEL_SCHED_PRIORITIES > 26)
47
48 #include <cyg/hal/hal_arch.h> // for CYGNUM_HAL_STACK_SIZE_TYPICAL
46 49
47 // ------------------------------------------------------------------------- 50 // -------------------------------------------------------------------------
48 51
49 #define THREADS 10 52 #define THREADS 10
50 53
54 #ifdef CYGNUM_HAL_STACK_SIZE_TYPICAL
55 #define STACKSIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
56 #else
51 #define STACKSIZE (2*1024) 57 #define STACKSIZE (2*1024)
58 #endif
52 59
53 #define CONTROLLER_PRI_HI 0 60 #define CONTROLLER_PRI_HI 0
54 #define CONTROLLER_PRI_LO 25 61 #define CONTROLLER_PRI_LO 25
55 62
56 #define WORKER_PRI 3 63 #define WORKER_PRI 3
318 325
319 // Command some of the N threads to call BREAKME(); themselves (then sleep 326 // Command some of the N threads to call BREAKME(); themselves (then sleep
320 // again). Change my prio to low, so that they all get to run and hit the 327 // again). Change my prio to low, so that they all get to run and hit the
321 // breakpoint. 328 // breakpoint.
322 // +++ A different one running every time, others in a mixture of 329 // +++ A different one running every time, others in a mixture of
323 // ready and sleeping states. 330 // ready and sleeping states.
324 331
325 worker_state = WORKER_STATE_BREAK; 332 worker_state = WORKER_STATE_BREAK;
326 333
327 cyg_cond_broadcast( &worker_cv ); 334 cyg_cond_broadcast( &worker_cv );
328 335
387 cyg_start( void ) 394 cyg_start( void )
388 { 395 {
389 CYG_TEST_INIT(); 396 CYG_TEST_INIT();
390 CYG_TEST_PASS_FINISH("Incorrect configuration for this test"); 397 CYG_TEST_PASS_FINISH("Incorrect configuration for this test");
391 } 398 }
392 #endif /* def CYGFUN_KERNEL_API_C && !def CYGSEM_KERNEL_SCHED_MLQUEUE */ 399 #endif /* def CYGFUN_KERNEL_API_C && ... */
393 400
394 // ------------------------------------------------------------------------- 401 // -------------------------------------------------------------------------
395 // EOF thread_gdb.c 402 // EOF thread_gdb.c