From 4210114032d8d079bddaa2333875c38e30c93490 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 26 Jan 2016 11:13:45 +0100 Subject: Use linker set for POSIX User Threads init Update #2408. --- cpukit/sapi/include/confdefs.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cpukit/sapi/include/confdefs.h') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 62db039185..ee2558cbc8 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -3461,10 +3461,11 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #ifdef CONFIGURE_INIT #if defined(CONFIGURE_POSIX_INIT_THREAD_TABLE) || \ defined(CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE) - void (*_POSIX_Threads_Initialize_user_threads_p)(void) = - _POSIX_Threads_Initialize_user_threads_body; - #else - void (*_POSIX_Threads_Initialize_user_threads_p)(void) = NULL; + RTEMS_SYSINIT_ITEM( + _POSIX_Threads_Initialize_user_threads_body, + RTEMS_SYSINIT_POSIX_USER_THREADS, + RTEMS_SYSINIT_ORDER_MIDDLE + ); #endif #endif #endif -- cgit v1.2.3