OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [sptests/] [sp07/] [tdelete.c] - Blame information for rev 310

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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-1999.
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.OARcorp.com/rtems/license.html.
17
 *
18
 *  $Id: tdelete.c,v 1.2 2001-09-27 12:02:31 chris Exp $
19
 */
20
 
21
#include "system.h"
22
 
23
rtems_extension Task_delete_extension(
24
  rtems_tcb *running_task,
25
  rtems_tcb *deleted_task
26
)
27
{
28
  if ( task_number( running_task->Object.id ) > 0 ) {
29
    puts_nocr( "TASK_DELETE - " );
30
    put_name( Task_name[ task_number( running_task->Object.id ) ], FALSE );
31
  }
32
  if ( task_number( deleted_task->Object.id ) > 0 ) {
33
    puts_nocr( " deleting " );
34
    put_name( Task_name[ task_number( deleted_task->Object.id ) ], TRUE );
35
  }
36
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.