summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 20:58:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 20:58:45 +0000
commit5240c71c524437838d7a4b9ba827514dccdc39bf (patch)
tree8808b80fe281e4f65502c2b9c0dadf6d96a081b5 /c
parent2197a2e15fa57bbc7a6f2bfe3d00a75860fbaa82 (diff)
downloadrtems-5240c71c524437838d7a4b9ba827514dccdc39bf.tar.bz2
fixed support for posix initialization threads table
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/sapi/headers/confdefs.h24
-rw-r--r--c/src/exec/sapi/include/confdefs.h24
2 files changed, 44 insertions, 4 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