summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-11 10:47:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:54 +0100
commitef1a985fc7591988ef956dd7b35f9533bace68a6 (patch)
tree757f151efbbbe0bd0fffbe4d6cc6fa0e78799d96 /cpukit/posix/src
parentOptional POSIX Signals initialization (diff)
downloadrtems-ef1a985fc7591988ef956dd7b35f9533bace68a6.tar.bz2
Optional POSIX Threads initialization
Update #2408.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r--cpukit/posix/src/killinfo.c12
-rw-r--r--cpukit/posix/src/pthread.c11
2 files changed, 12 insertions, 11 deletions
diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c
index 7f4adc738a..a29a8e6464 100644
--- a/cpukit/posix/src/killinfo.c
+++ b/cpukit/posix/src/killinfo.c
@@ -198,16 +198,8 @@ int killinfo(
continue;
the_info = _Objects_Information_table[ the_api ][ 1 ];
-
- #if defined(RTEMS_DEBUG)
- /*
- * This cannot happen in the current (as of June 2009) implementation
- * of initialization but at some point, the object information
- * structure for a particular manager may not be installed.
- */
- if ( !the_info )
- continue;
- #endif
+ if ( !the_info )
+ continue;
maximum = the_info->maximum;
object_table = the_info->local_table;
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index ee7da11231..691dfc3161 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -26,6 +26,7 @@
#include <rtems/system.h>
#include <rtems/config.h>
+#include <rtems/sysinit.h>
#include <rtems/score/apiext.h>
#include <rtems/score/stack.h>
#include <rtems/score/threadimpl.h>
@@ -43,6 +44,8 @@
#include <rtems/score/cpusetimpl.h>
#include <rtems/score/assert.h>
+Thread_Information _POSIX_Threads_Information;
+
/*
* The default pthreads attributes structure.
*
@@ -338,7 +341,7 @@ User_extensions_Control _POSIX_Threads_User_extensions = {
*
* This routine initializes all threads manager related data structures.
*/
-void _POSIX_Threads_Manager_initialization(void)
+static void _POSIX_Threads_Manager_initialization(void)
{
#if defined(RTEMS_SMP) && defined(__RTEMS_HAVE_SYS_CPUSET_H__)
const CPU_set_Control *affinity;
@@ -381,3 +384,9 @@ void _POSIX_Threads_Manager_initialization(void)
* Register the MP Process Packet routine.
*/
}
+
+RTEMS_SYSINIT_ITEM(
+ _POSIX_Threads_Manager_initialization,
+ RTEMS_SYSINIT_POSIX_THREADS,
+ RTEMS_SYSINIT_ORDER_MIDDLE
+);