diff options
Diffstat (limited to 'tools/schedsim/shell/schedsim_priority/printheir_executing.c')
-rw-r--r-- | tools/schedsim/shell/schedsim_priority/printheir_executing.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/schedsim/shell/schedsim_priority/printheir_executing.c b/tools/schedsim/shell/schedsim_priority/printheir_executing.c new file mode 100644 index 0000000000..b0855d3fc4 --- /dev/null +++ b/tools/schedsim/shell/schedsim_priority/printheir_executing.c @@ -0,0 +1,31 @@ +/* + * printheir_executing + * + * COPYRIGHT (c) 1989-2010. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#include <stdio.h> +#include <rtems.h> + +void PRINT_EXECUTING() { + printf( + " Thread Executing: 0x%08x priority=%ld\n", + _Thread_Executing->Object.id, + (long) _Thread_Executing->current_priority + ); +} + +void PRINT_HEIR() { + printf( + " Thread Heir: 0x%08x priority=%ld\n", + _Thread_Heir->Object.id, + (long) _Thread_Heir->current_priority + ); +} |