diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-08 10:18:14 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-09 08:37:18 -0500 |
commit | e4e7cbfded0db34ba53a6ec6eedf125143d1c67a (patch) | |
tree | 1090e22726d2ae238d82b2487ac74100cce48416 | |
parent | schedsim_smpsimple: Fix output of cpu dump. (diff) | |
download | rtems-schedsim-e4e7cbfded0db34ba53a6ec6eedf125143d1c67a.tar.bz2 |
schedsim_smpsimple: Fix smp output.
-rw-r--r-- | schedsim/shell/schedsim_smpsimple/printheir_executing.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/schedsim/shell/schedsim_smpsimple/printheir_executing.c b/schedsim/shell/schedsim_smpsimple/printheir_executing.c index 6604adb..b3ad6a0 100644 --- a/schedsim/shell/schedsim_smpsimple/printheir_executing.c +++ b/schedsim/shell/schedsim_smpsimple/printheir_executing.c @@ -12,9 +12,12 @@ #include <stdio.h> #include <rtems.h> +extern uint32_t Schedsim_Current_cpu; + void PRINT_EXECUTING() { printf( - " Thread Executing: 0x%08x priority=%ld\n", + " CPU %d: Thread Executing 0x%08x priority=%ld\n", + Schedsim_Current_cpu, _Thread_Executing->Object.id, (long) _Thread_Executing->current_priority ); @@ -22,7 +25,8 @@ void PRINT_EXECUTING() { void PRINT_HEIR() { printf( - " Thread Heir: 0x%08x priority=%ld\n", + " CPU %d: Thread Heir 0x%08x priority=%ld\n", + Schedsim_Current_cpu, _Thread_Heir->Object.id, (long) _Thread_Heir->current_priority ); |