diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-14 09:34:03 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:18 +0100 |
commit | a9bc7a5516baf78a708417560e99c88385679695 (patch) | |
tree | 33fb719759f570d46db3b07295e1c39a0749224f /cpukit/rtems | |
parent | 9520ec3a2aab575e264410d1ce95c468897c3bc9 (diff) |
rtems: Simplify _RTEMS_tasks_Initialize_user_task()
Due to the system initialization order, the _Thread_Global_constructor
must be 0 in this function.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/taskinitusers.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/rtems/src/taskinitusers.c b/cpukit/rtems/src/taskinitusers.c index 0645de324a..3f913b8484 100644 --- a/cpukit/rtems/src/taskinitusers.c +++ b/cpukit/rtems/src/taskinitusers.c @@ -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; } |