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-14 09:34:03 +01:00
parent 9520ec3a2a
commit a9bc7a5516

View File

@@ -56,7 +56,6 @@ void _RTEMS_tasks_Initialize_user_task( void )
_Assert( rtems_is_status_successful( return_value ) ); _Assert( rtems_is_status_successful( return_value ) );
(void) return_value; (void) return_value;
if ( _Thread_Global_constructor == 0 ) { _Assert( _Thread_Global_constructor == 0 );
_Thread_Global_constructor = id; _Thread_Global_constructor = id;
}
} }