[PATCH 3/4] rtems: Simplify _RTEMS_tasks_Initialize_user_task()
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Feb 14 09:08:08 UTC 2020
Due to the system initialization order, the _Thread_Global_constructor
must be 0 in this function.
---
cpukit/rtems/src/taskinitusers.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/cpukit/rtems/src/taskinitusers.c b/cpukit/rtems/src/taskinitusers.c
index a4f948afc9..1f902864e2 100644
--- a/cpukit/rtems/src/taskinitusers.c
+++ b/cpukit/rtems/src/taskinitusers.c
@@ -55,7 +55,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;
}
--
2.16.4
More information about the devel
mailing list