From b929b39e01f354cdfd64cf797fffbb2f9f5b30a7 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 5 Dec 2011 13:51:06 +0000 Subject: [PATCH] =?UTF-8?q?2011-12-05=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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. --- cpukit/ChangeLog | 10 ++++++++++ cpukit/posix/include/rtems/posix/pthread.h | 8 ++++++++ cpukit/rtems/include/rtems/rtems/tasks.h | 13 +++++++++++++ cpukit/sapi/include/confdefs.h | 2 -- 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,3 +1,13 @@ +2011-12-05 Ralf Corsépius + + * 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 * libmisc/shell/shell.h: Add rtems_shell_main_monitor. 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 #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 #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