diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-29 20:58:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-29 20:58:45 +0000 |
commit | 5240c71c524437838d7a4b9ba827514dccdc39bf (patch) | |
tree | 8808b80fe281e4f65502c2b9c0dadf6d96a081b5 /cpukit/sapi/include/confdefs.h | |
parent | simple version of test which shows pthread_create, pthread_exit, and exit (diff) | |
download | rtems-5240c71c524437838d7a4b9ba827514dccdc39bf.tar.bz2 |
fixed support for posix initialization threads table
Diffstat (limited to 'cpukit/sapi/include/confdefs.h')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 24 |
1 files changed, 22 insertions, 2 deletions
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 |