summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-05 13:51:06 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-05 13:51:06 +0000
commitb929b39e01f354cdfd64cf797fffbb2f9f5b30a7 (patch)
tree2c8e57d2187234c58a908ad0328b4d150e8857e1
parent2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b929b39e01f354cdfd64cf797fffbb2f9f5b30a7.tar.bz2
2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/include/rtems/posix/pthread.h: Add _POSIX_Threads_Initialize_user_threads_body. * rtems/include/rtems/rtems/tasks.h: Add _RTEMS_tasks_Initialize_user_tasks_body. * sapi/include/confdefs.h: Remove conditional, nested redeclaration of _POSIX_Threads_Initialize_user_threads_body, _RTEMS_tasks_Initialize_user_tasks_body.
-rw-r--r--cpukit/ChangeLog10
-rw-r--r--cpukit/posix/include/rtems/posix/pthread.h8
-rw-r--r--cpukit/rtems/include/rtems/rtems/tasks.h13
-rw-r--r--cpukit/sapi/include/confdefs.h2
4 files changed, 31 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 532358dd6c..55044bde5d 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,15 @@
2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * posix/include/rtems/posix/pthread.h:
+ Add _POSIX_Threads_Initialize_user_threads_body.
+ * rtems/include/rtems/rtems/tasks.h:
+ Add _RTEMS_tasks_Initialize_user_tasks_body.
+ * sapi/include/confdefs.h: Remove conditional, nested redeclaration of
+ _POSIX_Threads_Initialize_user_threads_body,
+ _RTEMS_tasks_Initialize_user_tasks_body.
+
+2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
+
* libmisc/shell/shell.h: Add rtems_shell_main_monitor.
* libmisc/shell/cmds.c: Make rtems_shell_main_monitor non-static.
diff --git a/cpukit/posix/include/rtems/posix/pthread.h b/cpukit/posix/include/rtems/posix/pthread.h
index 5dbd7c5f67..dfb0525245 100644
--- a/cpukit/posix/include/rtems/posix/pthread.h
+++ b/cpukit/posix/include/rtems/posix/pthread.h
@@ -165,6 +165,14 @@ int _POSIX_Thread_Translate_sched_param(
Thread_CPU_budget_algorithm_callout *budget_callout
);
+/**
+ * @brief _POSIX_Threads_Initialize_user_threads_body
+ *
+ * This routine creates and starts all configured user
+ * initialization threads.
+ */
+extern void _POSIX_Threads_Initialize_user_threads_body(void);
+
#include <rtems/posix/pthread.inl>
#ifdef __cplusplus
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h
index 3faeb57be8..390c873864 100644
--- a/cpukit/rtems/include/rtems/rtems/tasks.h
+++ b/cpukit/rtems/include/rtems/rtems/tasks.h
@@ -491,6 +491,19 @@ void _RTEMS_Tasks_Invoke_task_variable_dtor(
rtems_task_variable_t *tvp
);
+/**
+ * @brief _RTEMS_tasks_Initialize_user_tasks_body
+ *
+ * This routine creates and starts all configured user
+ * initialization threads.
+ *
+ * Input parameters: NONE
+ *
+ * Output parameters: NONE
+ */
+
+extern void _RTEMS_tasks_Initialize_user_tasks_body( void );
+
#ifndef __RTEMS_APPLICATION__
#include <rtems/rtems/tasks.inl>
#endif
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 94e22ebcde..c064b57135 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -2234,7 +2234,6 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
#ifdef CONFIGURE_INIT
#if defined(CONFIGURE_RTEMS_INIT_TASKS_TABLE) || \
defined(CONFIGURE_HAS_OWN_INIT_TASK_TABLE)
- void (_RTEMS_tasks_Initialize_user_tasks_body)(void);
void (*_RTEMS_tasks_Initialize_user_tasks_p)(void) =
_RTEMS_tasks_Initialize_user_tasks_body;
#else
@@ -2250,7 +2249,6 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
#ifdef CONFIGURE_INIT
#if defined(CONFIGURE_POSIX_INIT_THREAD_TABLE) || \
defined(CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE)
- void _POSIX_Threads_Initialize_user_threads_body(void);
void (*_POSIX_Threads_Initialize_user_threads_p)(void) =
_POSIX_Threads_Initialize_user_threads_body;
#else