forked from Imagelibrary/rtems
rtems: Simplify _RTEMS_tasks_Initialize_user_task()
Due to the system initialization order, the _Thread_Global_constructor must be 0 in this function.
This commit is contained in:
@@ -56,7 +56,6 @@ void _RTEMS_tasks_Initialize_user_task( void )
|
||||
_Assert( rtems_is_status_successful( return_value ) );
|
||||
(void) return_value;
|
||||
|
||||
if ( _Thread_Global_constructor == 0 ) {
|
||||
_Assert( _Thread_Global_constructor == 0 );
|
||||
_Thread_Global_constructor = id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user