source: rtems-schedsim/schedsim/shell/schedsim_smpsimple/printheir_executing.c @ b38dbcc

Last change on this file since b38dbcc was b38dbcc, checked in by Joel Sherrill <joel.sherrill@…>, on May 14, 2014 at 2:55:21 PM

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
15extern uint32_t Schedsim_Current_cpu;
16
17void 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
26void 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.