diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-07 18:12:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-07 18:12:41 +0000 |
commit | b467831a38559a9cc8364b69f2078121463bc17f (patch) | |
tree | 00b916620f87e52782b0cc55c9245853c9fe71b8 /tools/schedsim/shell/shared/schedsim_shell.h | |
parent | 2011-04-07 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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 '')
-rw-r--r-- | tools/schedsim/shell/shared/schedsim_shell.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/schedsim/shell/shared/schedsim_shell.h b/tools/schedsim/shell/shared/schedsim_shell.h index 4b23d1c42d..f9fc0b1b0d 100644 --- a/tools/schedsim/shell/shared/schedsim_shell.h +++ b/tools/schedsim/shell/shared/schedsim_shell.h @@ -20,6 +20,14 @@ extern "C" { #endif +#define CHECK_RTEMS_IS_UP() \ + do { \ + if ( _System_state_Current != SYSTEM_STATE_UP ) { \ + fprintf( stderr, "RTEMS is not initialized yet\n" ); \ + return -1; \ + } \ + } while (0) + void PRINT_EXECUTING(void); void PRINT_HEIR(void); |