summaryrefslogtreecommitdiffstats
path: root/c/src/exec/sapi/include/confdefs.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-15 20:50:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-15 20:50:31 +0000
commitbd9c3d1e76df8b4e774f50dbaf1bd5ebeeb7a154 (patch)
treea5409842b20b5263d7b14910033e728927dd4d41 /c/src/exec/sapi/include/confdefs.h
parentTransitioned to shared bsp_libc_init() and cleaned up comments. (diff)
downloadrtems-bd9c3d1e76df8b4e774f50dbaf1bd5ebeeb7a154.tar.bz2
Numerous changes which in total greatly reduced the amount of source
code in each BSP's bspstart.c. These changes were: + confdefs.h now knows libio's semaphore requirements + shared/main.c now copies Configuration to BSP_Configuration + shared/main.c fills in the Cpu_table with default values This removed the need for rtems_libio_config() and the constant BSP_LIBIO_MAX_FDS in every BSP. Plus now the maximum number of open files can now be set on the gcc command line.
Diffstat (limited to '')
-rw-r--r--c/src/exec/sapi/include/confdefs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/c/src/exec/sapi/include/confdefs.h b/c/src/exec/sapi/include/confdefs.h
index 446ab040e5..eb27a8412e 100644
--- a/c/src/exec/sapi/include/confdefs.h
+++ b/c/src/exec/sapi/include/confdefs.h
@@ -39,6 +39,13 @@ extern posix_api_configuration_table Configuration_POSIX_API;
#define CONFIGURE_NEWLIB_EXTENSION 1
#define CONFIGURE_MALLOC_REGION 1
+#ifndef CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
+#endif
+
+#define CONFIGURE_LIBIO_SEMAPHORES \
+ (CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS + 1)
+
/*
* Stack Checker Requirements
*/
@@ -477,7 +484,8 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
#define CONFIGURE_EXECUTIVE_RAM_SIZE \
(( CONFIGURE_MEMORY_FOR_TASKS(CONFIGURE_MAXIMUM_TASKS) + \
CONFIGURE_MEMORY_FOR_TIMERS(CONFIGURE_MAXIMUM_TIMERS) + \
- CONFIGURE_MEMORY_FOR_SEMAPHORES(CONFIGURE_MAXIMUM_SEMAPHORES) + \
+ CONFIGURE_MEMORY_FOR_SEMAPHORES(CONFIGURE_MAXIMUM_SEMAPHORES + \
+ CONFIGURE_LIBIO_SEMAPHORES) + \
CONFIGURE_MEMORY_FOR_MESSAGE_QUEUES(CONFIGURE_MAXIMUM_MESSAGE_QUEUES) + \
CONFIGURE_MEMORY_FOR_PARTITIONS(CONFIGURE_MAXIMUM_PARTITIONS) + \
CONFIGURE_MEMORY_FOR_REGIONS( \