diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-15 20:50:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-15 20:50:31 +0000 |
commit | bd9c3d1e76df8b4e774f50dbaf1bd5ebeeb7a154 (patch) | |
tree | a5409842b20b5263d7b14910033e728927dd4d41 /c/src/exec/libcsupport | |
parent | Transitioned to shared bsp_libc_init() and cleaned up comments. (diff) | |
download | rtems-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 'c/src/exec/libcsupport')
-rw-r--r-- | c/src/exec/libcsupport/src/libio.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/c/src/exec/libcsupport/src/libio.c b/c/src/exec/libcsupport/src/libio.c index 4ac3666a1e..cdb89e22de 100644 --- a/c/src/exec/libcsupport/src/libio.c +++ b/c/src/exec/libcsupport/src/libio.c @@ -101,24 +101,6 @@ rtems_register_libio_handler( handlers[handler_index] = *handler; } - -void -rtems_libio_config( - rtems_configuration_table *config, - unsigned32 max_fds -) -{ - rtems_libio_number_iops = max_fds; - - /* - * tweak config to reflect # of semaphores we will need - */ - - /* one for iop table */ - config->RTEMS_api_configuration->maximum_semaphores += 1; - config->RTEMS_api_configuration->maximum_semaphores += max_fds; -} - /* * Called by bsp startup code to init the libio area. */ |