summaryrefslogtreecommitdiffstats
path: root/cpukit/itron/src/exd_tsk.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/itron/src/exd_tsk.c')
-rw-r--r--cpukit/itron/src/exd_tsk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/itron/src/exd_tsk.c b/cpukit/itron/src/exd_tsk.c
index c2b86f3126..51c0eb04c5 100644
--- a/cpukit/itron/src/exd_tsk.c
+++ b/cpukit/itron/src/exd_tsk.c
@@ -25,13 +25,13 @@ void exd_tsk( void )
{
Objects_Information *the_information;
+ _Thread_Disable_dispatch();
+
the_information = _Objects_Get_information( _Thread_Executing->Object.id );
/* This should never happen if _Thread_Get() works right */
assert( the_information );
- _Thread_Disable_dispatch();
-
_Thread_Set_state( _Thread_Executing, STATES_DORMANT );
_ITRON_Delete_task( _Thread_Executing );