4.104.114.84.95
Line | |
---|
1 | /* Task_restart_extension |
---|
2 | * |
---|
3 | * This routine is the trestart user extension. |
---|
4 | * |
---|
5 | * Input parameters: |
---|
6 | * unused - pointer to currently running TCB |
---|
7 | * restarted_task - pointer to new TCB being started |
---|
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 | void Task_restart_extension( |
---|
24 | rtems_tcb *unused, |
---|
25 | rtems_tcb *restarted_task |
---|
26 | ) |
---|
27 | { |
---|
28 | char line[80]; |
---|
29 | rtems_name name; |
---|
30 | |
---|
31 | if ( task_number( restarted_task->Object.id ) > 0 ) { |
---|
32 | name = Task_name[ task_number( restarted_task->Object.id ) ]; |
---|
33 | sprintf( line, "TASK_RESTART - %c%c%c%c - restarted\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.