diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-16 22:09:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-16 22:09:35 +0000 |
commit | 3afb0d231a5dac8c4168bd15189048313d565a5a (patch) | |
tree | 802ace5bb9ba9746f1016d318627e68f63a583ac /c/src/exec/rtems/src | |
parent | 2001-01-16 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-3afb0d231a5dac8c4168bd15189048313d565a5a.tar.bz2 |
2001-01-16 Joel Sherrill <joel@OARcorp.com>
* src/taskmode.c: Ensure the this service does not dispatch before
tasking is enabled at initialization time.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/rtems/src/taskmode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/exec/rtems/src/taskmode.c b/c/src/exec/rtems/src/taskmode.c index 008447c42c..85a4d996af 100644 --- a/c/src/exec/rtems/src/taskmode.c +++ b/c/src/exec/rtems/src/taskmode.c @@ -114,8 +114,9 @@ rtems_status_code rtems_task_mode( } } - if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) - _Thread_Dispatch(); + if ( _System_state_Is_up(_System_state_Current) ) + if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) + _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } |