Last change
on this file since b38dbcc was
b38dbcc,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/14 at 14:55:21
|
Many files: rm white space at EOL and EOF
|
-
Property mode set to
100644
|
File size:
749 bytes
|
Line | |
---|
1 | /* |
---|
2 | * printheir_executing |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2013. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | */ |
---|
11 | |
---|
12 | #include <stdio.h> |
---|
13 | #include <rtems.h> |
---|
14 | |
---|
15 | extern uint32_t Schedsim_Current_cpu; |
---|
16 | |
---|
17 | void PRINT_EXECUTING() { |
---|
18 | printf( |
---|
19 | " CPU %d: Thread Executing 0x%08x priority=%ld\n", |
---|
20 | Schedsim_Current_cpu, |
---|
21 | _Thread_Executing->Object.id, |
---|
22 | (long) _Thread_Executing->current_priority |
---|
23 | ); |
---|
24 | } |
---|
25 | |
---|
26 | void PRINT_HEIR() { |
---|
27 | printf( |
---|
28 | " CPU %d: Thread Heir 0x%08x priority=%ld\n", |
---|
29 | Schedsim_Current_cpu, |
---|
30 | _Thread_Heir->Object.id, |
---|
31 | (long) _Thread_Heir->current_priority |
---|
32 | ); |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.