From fa450796f686541a8616a01a3399a93180e6addd Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Fri, 16 May 2014 14:42:50 -0500 Subject: schedsim: Add smp scenario support for a default core set. --- schedsim/shell/shared/main_rtemsinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schedsim/shell/shared/main_rtemsinit.c b/schedsim/shell/shared/main_rtemsinit.c index 063316a..ad2b14f 100644 --- a/schedsim/shell/shared/main_rtemsinit.c +++ b/schedsim/shell/shared/main_rtemsinit.c @@ -33,15 +33,15 @@ int rtems_shell_main_rtems_init( ) { #if defined(RTEMS_SMP) - long cpus; + long cpus = 1; if ( argc >= 2 ) { if ( rtems_string_to_long(argv[1], &cpus, NULL, 0) ) { printf( "Number of CPUs argument (%s) is not a number\n", argv[1] ); return -1; } - Schedsim_Maximum_CPUs_From_Command_Line = cpus; } + Schedsim_Maximum_CPUs_From_Command_Line = cpus; #endif // -- cgit v1.2.3