diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-12-13 11:01:48 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-28 11:33:52 -0500 |
commit | 726b27c5bf4b2f4200953950b985b6e0fb7ce20f (patch) | |
tree | 6ae666752f68e3171dd8966bcca4431629369ba0 /schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c | |
parent | .configure.swp: Junk file removed from git (diff) | |
download | rtems-schedsim-726b27c5bf4b2f4200953950b985b6e0fb7ce20f.tar.bz2 |
schedsim: Update to latest RTEMS. Works Uniprocessor
Diffstat (limited to 'schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c')
-rw-r--r-- | schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c b/schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c index 7e19065..faa4de7 100644 --- a/schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c +++ b/schedsim/shell/schedsim_smpsimple/main_dump_all_cpus.c @@ -36,16 +36,15 @@ int main_dump_all_cpus(int argc, char **argv) " SWITCH NEEDED\n" ); for ( cpu=0 ; cpu < _SMP_Processor_count ; cpu++ ) { - e = _Per_CPU_Information[cpu].executing; - h = _Per_CPU_Information[cpu].heir; - i = _Per_CPU_Information[cpu].idle; + e = _Per_CPU_Information[cpu].per_cpu.executing; + h = _Per_CPU_Information[cpu].per_cpu.heir; printf( - " CPU %d: 0x%08x @%3ld / 0x%08x @%3ld / 0x%08x @%3ld %s\n", + " CPU %d: 0x%08x @%3ld / 0x%08x @%3ld %s\n", cpu, e->Object.id, (long) e->current_priority, h->Object.id, (long) h->current_priority, - i->Object.id, (long) i->current_priority, - ((_Per_CPU_Information[cpu].dispatch_necessary) ? "true" : "false") + ((_Per_CPU_Information[cpu].per_cpu.dispatch_necessary) ? + "true" : "false") ); } printf( "=== End of Ready Set of Threads\n" ); |