From 5240c71c524437838d7a4b9ba827514dccdc39bf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 29 May 1996 20:58:45 +0000 Subject: fixed support for posix initialization threads table --- c/src/exec/sapi/headers/confdefs.h | 24 ++++++++++++++++++++++-- c/src/exec/sapi/include/confdefs.h | 24 ++++++++++++++++++++++-- cpukit/sapi/include/confdefs.h | 24 ++++++++++++++++++++++-- 3 files changed, 66 insertions(+), 6 deletions(-) diff --git a/c/src/exec/sapi/headers/confdefs.h b/c/src/exec/sapi/headers/confdefs.h index 2fe33a4983..700c4eb7a4 100644 --- a/c/src/exec/sapi/headers/confdefs.h +++ b/c/src/exec/sapi/headers/confdefs.h @@ -265,8 +265,28 @@ rtems_multiprocessing_table Multiprocessing_configuration = { #define CONFIGURE_MAXIMUM_POSIX_KEYS 0 #endif +#ifndef CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE + +#ifndef CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT +#define CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT Init +#endif + +#ifdef CONFIGURE_INIT +posix_initialization_tasks_table POSIX_Initialization_tasks[] = { + { CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT } +}; #endif +#define CONFIGURE_POSIX_INIT_TASK_TABLE POSIX_Initialization_tasks + +#define CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE \ + sizeof(CONFIGURE_POSIX_INIT_TASK_TABLE) / \ + sizeof(posix_initialization_tasks_table) + +#endif /* CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE */ + +#endif /* RTEMS_POSIX_API */ + /* * Calculate the RAM size based on the maximum number of objects configured. * The model is to estimate the memory required for each configured item, @@ -392,8 +412,8 @@ posix_api_configuration_table Configuration_POSIX_API = { CONFIGURE_MAXIMUM_POSIX_MUTEXES, CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES, CONFIGURE_MAXIMUM_POSIX_KEYS, - 0, - NULL + CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE, + CONFIGURE_POSIX_INIT_TASK_TABLE }; #endif diff --git a/c/src/exec/sapi/include/confdefs.h b/c/src/exec/sapi/include/confdefs.h index 2fe33a4983..700c4eb7a4 100644 --- a/c/src/exec/sapi/include/confdefs.h +++ b/c/src/exec/sapi/include/confdefs.h @@ -265,8 +265,28 @@ rtems_multiprocessing_table Multiprocessing_configuration = { #define CONFIGURE_MAXIMUM_POSIX_KEYS 0 #endif +#ifndef CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE + +#ifndef CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT +#define CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT Init +#endif + +#ifdef CONFIGURE_INIT +posix_initialization_tasks_table POSIX_Initialization_tasks[] = { + { CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT } +}; #endif +#define CONFIGURE_POSIX_INIT_TASK_TABLE POSIX_Initialization_tasks + +#define CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE \ + sizeof(CONFIGURE_POSIX_INIT_TASK_TABLE) / \ + sizeof(posix_initialization_tasks_table) + +#endif /* CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE */ + +#endif /* RTEMS_POSIX_API */ + /* * Calculate the RAM size based on the maximum number of objects configured. * The model is to estimate the memory required for each configured item, @@ -392,8 +412,8 @@ posix_api_configuration_table Configuration_POSIX_API = { CONFIGURE_MAXIMUM_POSIX_MUTEXES, CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES, CONFIGURE_MAXIMUM_POSIX_KEYS, - 0, - NULL + CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE, + CONFIGURE_POSIX_INIT_TASK_TABLE }; #endif diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 2fe33a4983..700c4eb7a4 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -265,8 +265,28 @@ rtems_multiprocessing_table Multiprocessing_configuration = { #define CONFIGURE_MAXIMUM_POSIX_KEYS 0 #endif +#ifndef CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE + +#ifndef CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT +#define CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT Init +#endif + +#ifdef CONFIGURE_INIT +posix_initialization_tasks_table POSIX_Initialization_tasks[] = { + { CONFIGURE_POSIX_INIT_TASK_ENTRY_POINT } +}; #endif +#define CONFIGURE_POSIX_INIT_TASK_TABLE POSIX_Initialization_tasks + +#define CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE \ + sizeof(CONFIGURE_POSIX_INIT_TASK_TABLE) / \ + sizeof(posix_initialization_tasks_table) + +#endif /* CONFIGURE_POSIX_HAS_OWN_INIT_TASK_TABLE */ + +#endif /* RTEMS_POSIX_API */ + /* * Calculate the RAM size based on the maximum number of objects configured. * The model is to estimate the memory required for each configured item, @@ -392,8 +412,8 @@ posix_api_configuration_table Configuration_POSIX_API = { CONFIGURE_MAXIMUM_POSIX_MUTEXES, CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES, CONFIGURE_MAXIMUM_POSIX_KEYS, - 0, - NULL + CONFIGURE_POSIX_INIT_TASK_TABLE_SIZE, + CONFIGURE_POSIX_INIT_TASK_TABLE }; #endif -- cgit v1.2.3