diff options
Diffstat (limited to 'testsuites/sptests/sp07/tstart.c')
-rw-r--r-- | testsuites/sptests/sp07/tstart.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuites/sptests/sp07/tstart.c b/testsuites/sptests/sp07/tstart.c new file mode 100644 index 0000000000..1b1fc795b7 --- /dev/null +++ b/testsuites/sptests/sp07/tstart.c @@ -0,0 +1,34 @@ +/* Task_start_extension + * + * This routine is the tstart user extension. + * + * Input parameters: + * unused - pointer to currently running TCB + * started_task - pointer to new TCB being started + * + * Output parameters: NONE + * + * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. + * On-Line Applications Research Corporation (OAR). + * All rights assigned to U.S. Government, 1994. + * + * This material may be reproduced by or for the U.S. Government pursuant + * to the copyright license under the clause at DFARS 252.227-7013. This + * notice must appear in all copies of this file and its derivatives. + * + * $Id$ + */ + +#include "system.h" + +rtems_extension Task_start_extension( + rtems_tcb *unused, + rtems_tcb *started_task +) +{ + if ( task_number( started_task->Object.id ) > 0 ) { + puts_nocr( "TASK_START - " ); + put_name( Task_name[ task_number( started_task->Object.id ) ], FALSE ); + puts( " - started." ); + } +} |