source: rtems/testsuites/sptests/sp07/tdelete.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: 1.2 KB
Line 
1/*  Task_delete_extension
2 *
3 *  This routine is the delete user extension.
4 *
5 *  Input parameters:
6 *    running_task - pointer to running TCB
7 *    deleted_task - pointer to TCB deleted
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_delete_extension(
24  rtems_tcb *running_task,
25  rtems_tcb *deleted_task
26)
27{
28  char line[80];
29  rtems_name name;
30
31  if ( task_number( running_task->Object.id ) > 0 ) {
32    name = Task_name[ task_number( running_task->Object.id ) ];
33    sprintf( line, "TASK_DELETE - %c%c%c%c TASK_DELETE ",
34      (name >> 24) & 0xff,
35      (name >> 16) & 0xff,
36      (name >> 8) & 0xff,
37      name & 0xff
38    );
39    buffered_io_add_string( line );
40  }
41  if ( task_number( deleted_task->Object.id ) > 0 ) {
42    name = Task_name[ task_number( deleted_task->Object.id ) ];
43    sprintf( line, "deleting - %c%c%c%c\n",
44      (name >> 24) & 0xff,
45      (name >> 16) & 0xff,
46      (name >> 8) & 0xff,
47      name & 0xff
48    );
49    buffered_io_add_string( line );
50  }
51}
Note: See TracBrowser for help on using the repository browser.