4.104.114.84.95
Last change
on this file since e457190 was
e457190,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/16/03 at 23:35:09
|
2003-12-16 Joel Sherrill <joel@…>
PR 544/tests
- sp07/Makefile.am, sp07/init.c, sp07/system.h, sp07/task4.c,
sp07/tcreate.c, sp07/tdelete.c, sp07/trestart.c, sp07/tstart.c,
sp09/system.h, sp19/system.h, sp20/system.h: Various modifications to
make tests account for resources and not print at inappropriate
times.
- sp07/buffered_io.c: New file.
|
-
Property mode set to
100644
|
File size:
1.3 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-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.rtems.com/license/LICENSE. |
---|
17 | * |
---|
18 | * $Id$ |
---|
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 | 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", |
---|
34 | (name >> 24) & 0xff, |
---|
35 | (name >> 16) & 0xff, |
---|
36 | (name >> 8) & 0xff, |
---|
37 | name & 0xff |
---|
38 | ); |
---|
39 | buffered_io_add_string( line ); |
---|
40 | puts_nocr( "TASK_DELETE - " ); |
---|
41 | put_name( Task_name[ task_number( running_task->Object.id ) ], FALSE ); |
---|
42 | } |
---|
43 | if ( task_number( deleted_task->Object.id ) > 0 ) { |
---|
44 | name = Task_name[ task_number( deleted_task->Object.id ) ]; |
---|
45 | sprintf( line, "deleting - %c%c%c%c\n", |
---|
46 | (name >> 24) & 0xff, |
---|
47 | (name >> 16) & 0xff, |
---|
48 | (name >> 8) & 0xff, |
---|
49 | name & 0xff |
---|
50 | ); |
---|
51 | buffered_io_add_string( line ); |
---|
52 | } |
---|
53 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.