source: rtems/testsuites/sptests/sp07/tstart.c @ ac85d56

4.104.115
Last change on this file since ac85d56 was ac85d56, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 26, 2009 at 3:47:16 PM

2009-09-26 Joel Sherrill <joel.sherrill@…>

  • sp04/tswitch.c, sp07/system.h, sp07/taskexit.c, sp07/tdelete.c, sp07/tstart.c, spfatal_support/init.c, spfatal_support/system.h: Eliminate use of deprecated rtems_extension.
  • Property mode set to 100644
File size: 963 bytes
Line 
1/*  Task_start_extension
2 *
3 *  This routine is the tstart user extension.
4 *
5 *  Input parameters:
6 *    unused        - pointer to currently running TCB
7 *    started_task  - pointer to new TCB being started
8 *
9 *  Output parameters:  NONE
10 *
11 *  COPYRIGHT (c) 1989-2009.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 *
18 *  $Id$
19 */
20
21#include "system.h"
22
23void Task_start_extension(
24  rtems_tcb *unused,
25  rtems_tcb *started_task
26)
27{
28  char line[80];
29  rtems_name name;
30
31  if ( task_number( started_task->Object.id ) > 0 ) {
32    name = Task_name[ task_number( started_task->Object.id ) ];
33    sprintf( line, "TASK_START - %c%c%c%c - started\n",
34      (name >> 24) & 0xff,
35      (name >> 16) & 0xff,
36      (name >> 8) & 0xff,
37      name & 0xff
38    );
39    buffered_io_add_string( line );
40  }
41}
Note: See TracBrowser for help on using the repository browser.