[PATCH v2 03/44] rtems: Simplify _RTEMS_tasks_Initialize_user_task()
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Feb 21 10:52:15 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 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;
}
--
2.16.4
More information about the devel
mailing list