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.
This commit is contained in:
Joel Sherrill
1998-04-15 20:50:31 +00:00
parent b6394ae434
commit bd9c3d1e76
58 changed files with 99 additions and 892 deletions

View File

@@ -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.
*/