From 3afb0d231a5dac8c4168bd15189048313d565a5a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 16 Jan 2002 22:09:35 +0000 Subject: 2001-01-16 Joel Sherrill * src/taskmode.c: Ensure the this service does not dispatch before tasking is enabled at initialization time. --- c/src/exec/rtems/ChangeLog | 5 +++++ c/src/exec/rtems/src/taskmode.c | 5 +++-- cpukit/rtems/ChangeLog | 5 +++++ cpukit/rtems/src/taskmode.c | 5 +++-- 4 files changed, 16 insertions(+), 4 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 + + * src/taskmode.c: Ensure the this service does not dispatch before + tasking is enabled at initialization time. + 2002-01-07 Joel Sherrill * 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; } 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 + + * src/taskmode.c: Ensure the this service does not dispatch before + tasking is enabled at initialization time. + 2002-01-07 Joel Sherrill * 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; } -- cgit v1.2.3