mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 06:55:44 +08:00
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 ) {
|
||||
_Thread_Global_constructor = id;
|
||||
}
|
||||
_Assert( _Thread_Global_constructor == 0 );
|
||||
_Thread_Global_constructor = id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user