diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-22 09:40:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-08 09:03:33 +0100 |
commit | 44e987192e47910b8551a8f9409e9cd6133695d1 (patch) | |
tree | 358f37aee1e92ae5a67ee17742b91cf334167f50 /cpukit/score/src/threadglobalconstruction.c | |
parent | score: Add fatal errors for NULL entry init tasks (diff) | |
download | rtems-44e987192e47910b8551a8f9409e9cd6133695d1.tar.bz2 |
score: Avoid dead code in global construction
Update #2514.
Diffstat (limited to 'cpukit/score/src/threadglobalconstruction.c')
-rw-r--r-- | cpukit/score/src/threadglobalconstruction.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/cpukit/score/src/threadglobalconstruction.c b/cpukit/score/src/threadglobalconstruction.c index c7c10d9143..56a6df11a9 100644 --- a/cpukit/score/src/threadglobalconstruction.c +++ b/cpukit/score/src/threadglobalconstruction.c @@ -44,10 +44,9 @@ #define EXECUTE_GLOBAL_CONSTRUCTORS #endif -void *_Thread_Global_construction( void ) +void _Thread_Global_construction( Thread_Entry entry_point ) { Thread_Control *executing; - Thread_Entry entry_point; #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) /* @@ -58,19 +57,6 @@ void *_Thread_Global_construction( void ) INIT_NAME(); #endif -#if defined(RTEMS_POSIX_API) - if ( Configuration_RTEMS_API.number_of_initialization_tasks > 0 ) { -#endif - entry_point = (Thread_Entry) - Configuration_RTEMS_API.User_initialization_tasks_table[ 0 ].entry_point; -#if defined(RTEMS_POSIX_API) - } else { - entry_point = (Thread_Entry) - Configuration_POSIX_API - .User_initialization_threads_table[ 0 ].thread_entry; - } -#endif - _Thread_Disable_dispatch(); executing = _Thread_Executing; @@ -86,6 +72,4 @@ void *_Thread_Global_construction( void ) _Thread_Enable_dispatch(); _Assert_Not_reached(); - - return NULL; } |