summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-01-16 22:09:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-01-16 22:09:35 +0000
commit3afb0d231a5dac8c4168bd15189048313d565a5a (patch)
tree802ace5bb9ba9746f1016d318627e68f63a583ac /cpukit
parentb736beb5082aff8da06fc94e1eea7643be00399a (diff)
downloadrtems-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 'cpukit')
-rw-r--r--cpukit/rtems/ChangeLog5
-rw-r--r--cpukit/rtems/src/taskmode.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog
index b1a90b64c3..416813a92b 100644
--- a/cpukit/rtems/ChangeLog
+++ b/cpukit/rtems/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2002-01-07 Joel Sherrill <joel@OARcorp.com>
* optman/, optman/.cvsignore, optman/Makefile.am, optman/no-dpmem.c,
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c
index 008447c42c..85a4d996af 100644
--- a/cpukit/rtems/src/taskmode.c
+++ b/cpukit/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;
}