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:
Sebastian Huber
2020-02-25 07:15:18 +01:00
parent 9520ec3a2a
commit a9bc7a5516
+2 -3
View File
@@ -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 ) {
_Thread_Global_constructor = id;
}
_Assert( _Thread_Global_constructor == 0 );
_Thread_Global_constructor = id;
}