summaryrefslogtreecommitdiffstats
path: root/tools/schedsim/shell/shared/main_taskmode.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-07 18:12:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-07 18:12:41 +0000
commitb467831a38559a9cc8364b69f2078121463bc17f (patch)
tree00b916620f87e52782b0cc55c9245853c9fe71b8 /tools/schedsim/shell/shared/main_taskmode.c
parent2011-04-07 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-b467831a38559a9cc8364b69f2078121463bc17f.tar.bz2
2011-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/main_clocktick.c, shared/main_semcreate.c, shared/main_semdelete.c, shared/main_semflush.c, shared/main_semobtain.c, shared/main_semrelease.c, shared/main_taskcreate.c, shared/main_taskdelete.c, shared/main_taskmode.c, shared/main_taskpriority.c, shared/main_taskresume.c, shared/main_tasksuspend.c, shared/main_taskwakeafter.c, shared/schedsim_shell.h: Compiles now and do not core dump when RTEMS is not initialized.
Diffstat (limited to 'tools/schedsim/shell/shared/main_taskmode.c')
-rw-r--r--tools/schedsim/shell/shared/main_taskmode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/schedsim/shell/shared/main_taskmode.c b/tools/schedsim/shell/shared/main_taskmode.c
index b3517d99d3..7b9c2638d8 100644
--- a/tools/schedsim/shell/shared/main_taskmode.c
+++ b/tools/schedsim/shell/shared/main_taskmode.c
@@ -52,6 +52,8 @@ int rtems_shell_main_task_mode(
struct getopt_data getopt_reent;
char option;
+ CHECK_RTEMS_IS_UP();
+
mode = 0;
mask = 0;
memset(&getopt_reent, 0, sizeof(getopt_data));