summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/rtems/ChangeLog5
-rw-r--r--c/src/exec/rtems/src/taskmode.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/c/src/exec/rtems/ChangeLog b/c/src/exec/rtems/ChangeLog
index b1a90b64c3..416813a92b 100644
--- a/c/src/exec/rtems/ChangeLog
+++ b/c/src/exec/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/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;
}